We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e8fefe commit 7664878Copy full SHA for 7664878
roundup/cgi/client.py
@@ -1,4 +1,4 @@
1
-# $Id: client.py,v 1.134 2003-09-06 09:45:30 jlgijsbers Exp $
+# $Id: client.py,v 1.135 2003-09-07 22:12:24 richard Exp $
2
3
__doc__ = """
4
WWW request handler (also used in the stand-alone server).
@@ -32,7 +32,11 @@ class NotModified(HTTPException):
32
SENDMAILDEBUG = os.environ.get('SENDMAILDEBUG', '')
33
34
# used by a couple of routines
35
-chars = string.ascii_letters+string.digits
+if hasattr(string, 'ascii_letters'):
36
+ chars = string.ascii_letters+string.digits
37
+else:
38
+ # python2.1 doesn't have ascii_letters
39
+ chars = string.letters+string.digits
40
41
# XXX actually _use_ FormError
42
class FormError(ValueError):
0 commit comments