changeset 1798:9bd553ea75fa

py2.1 fix
author Richard Jones <richard@users.sourceforge.net>
date Sun, 07 Sep 2003 22:12:24 +0000
parents c1eec970d5c0
children 071ea6fc803f
files roundup/cgi/client.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/client.py	Sun Sep 07 20:37:33 2003 +0000
+++ b/roundup/cgi/client.py	Sun Sep 07 22:12:24 2003 +0000
@@ -1,4 +1,4 @@
-# $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 $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -32,7 +32,11 @@
 SENDMAILDEBUG = os.environ.get('SENDMAILDEBUG', '')
 
 # used by a couple of routines
-chars = string.ascii_letters+string.digits
+if hasattr(string, 'ascii_letters'):
+    chars = string.ascii_letters+string.digits
+else:
+    # python2.1 doesn't have ascii_letters
+    chars = string.letters+string.digits
 
 # XXX actually _use_ FormError
 class FormError(ValueError):

Roundup Issue Tracker: http://roundup-tracker.org/