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 aldwinaldwin
Recipients Jonas Thiem, Nan Wu, The Compiler, aldwinaldwin, martin.panter, r.david.murray, willingc, xtreak
Date 2019-06-14.09:56:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560506199.62.0.439765568631.issue25567@roundup.psfhosted.org>
In-reply-to
Content
Python 3.9.0a0
[GCC 7.3.0] on linux
>>> import re
>>> find_unsafe_bytes = re.compile(b'[^\w@%+=:,./-]').search
<stdin>:1: SyntaxWarning: invalid escape sequence \w

when removing \w, all the tests pass

(my regex knowledge is close to None.)

"\w stands for "word character". It always matches the ASCII characters [A-Za-z0-9_]"

replace \w with A-Za-z0-9_ ?? (all the tests pass)
History
Date User Action Args
2019-06-14 09:56:39aldwinaldwinsetrecipients: + aldwinaldwin, r.david.murray, martin.panter, The Compiler, willingc, Nan Wu, Jonas Thiem, xtreak
2019-06-14 09:56:39aldwinaldwinsetmessageid: <1560506199.62.0.439765568631.issue25567@roundup.psfhosted.org>
2019-06-14 09:56:39aldwinaldwinlinkissue25567 messages
2019-06-14 09:56:39aldwinaldwincreate