Message141997
| 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). |
|