From 0d693ffaf81b71f1b011a8fe20a42afcaf370080 Mon Sep 17 00:00:00 2001 From: richard Date: Sun, 7 Sep 2003 22:12:24 +0000 Subject: [PATCH] py2.1 fix git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1865 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/client.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py index ffdd761..d4228e1 100644 --- a/roundup/cgi/client.py +++ b/roundup/cgi/client.py @@ -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 @@ class NotModified(HTTPException): 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): -- 2.30.2