Mercurial > p > roundup > code
changeset 1807:ea43cb3c157f
We need a stable set of chars to be able to match...
...the subject lines of registration confirmation. Py2.1's
string.letters also depends on locales, so we can't use it.
| author | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
|---|---|
| date | Wed, 10 Sep 2003 13:04:05 +0000 |
| parents | f1077d63795c |
| children | 3ac35c8e1782 |
| files | roundup/cgi/client.py |
| diffstat | 1 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/cgi/client.py Wed Sep 10 12:43:18 2003 +0000 +++ b/roundup/cgi/client.py Wed Sep 10 13:04:05 2003 +0000 @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.138 2003-09-08 21:08:18 jlgijsbers Exp $ +# $Id: client.py,v 1.139 2003-09-10 13:04:05 jlgijsbers Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -6,7 +6,7 @@ import os, os.path, cgi, StringIO, urlparse, re, traceback, mimetypes, urllib import binascii, Cookie, time, random, MimeWriter, smtplib, socket, quopri -import stat, rfc822, string +import stat, rfc822 from roundup import roundupdb, date, hyperdb, password, token, rcsv from roundup.i18n import _ @@ -29,11 +29,7 @@ pass # used by a couple of routines -if hasattr(string, 'ascii_letters'): - chars = string.ascii_letters+string.digits -else: - # python2.1 doesn't have ascii_letters - chars = string.letters+string.digits +chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' # XXX actually _use_ FormError class FormError(ValueError):
