This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients anacrolix, brandon-rhodes, eric.araujo, eric.smith, ezio.melotti, georg.brandl, python-dev, r.david.murray, vstinner, xuanji
Date 2011-08-12.23:21:01
SpamBayes Score 0.0026241285
Marked as misclassified No
Message-id <1313191262.35.0.881232463275.issue9723@psf.upfronthosting.co.za>
In-reply-to
Content
-_find_unsafe = re.compile(r'[^\w\d@%_\-\+=:,\./]').search
+_find_unsafe = re.compile(r'[^\w@%\-\+=:,\./]', re.ASCII).search

FWIW there are still unnecessary escapes before '+' and '.', and possibly '-' ('-' doesn't need escaping only when it's at the end (or beginning) of the regex).
History
Date User Action Args
2011-08-12 23:21:02ezio.melottisetrecipients: + ezio.melotti, georg.brandl, vstinner, eric.smith, eric.araujo, r.david.murray, brandon-rhodes, anacrolix, xuanji, python-dev
2011-08-12 23:21:02ezio.melottisetmessageid: <1313191262.35.0.881232463275.issue9723@psf.upfronthosting.co.za>
2011-08-12 23:21:01ezio.melottilinkissue9723 messages
2011-08-12 23:21:01ezio.melotticreate