Skip to content

Commit 7664878

Browse files
author
Richard Jones
committed
py2.1 fix
1 parent 9e8fefe commit 7664878

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

roundup/cgi/client.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.134 2003-09-06 09:45:30 jlgijsbers Exp $
1+
# $Id: client.py,v 1.135 2003-09-07 22:12:24 richard Exp $
22

33
__doc__ = """
44
WWW request handler (also used in the stand-alone server).
@@ -32,7 +32,11 @@ class NotModified(HTTPException):
3232
SENDMAILDEBUG = os.environ.get('SENDMAILDEBUG', '')
3333

3434
# used by a couple of routines
35-
chars = string.ascii_letters+string.digits
35+
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
3640

3741
# XXX actually _use_ FormError
3842
class FormError(ValueError):

0 commit comments

Comments
 (0)