-
Notifications
You must be signed in to change notification settings - Fork 179
Closed
Labels
bug: fixedA bug that has been fixed in a releaseA bug that has been fixed in a releasetype: fixA bug fixA bug fix
Description
proselint/checks/links/broken.py contains the following code (with boring parts of the regexp omitted):
regex = re.compile(
r"""...boring...
|[^\s`!()\[\]{};:\'".,<>?\xab\xbb\u201c\u201d\u2018\u2019\u21a9]))""",
re.U)But the \uXXXX escape sequences for regexps were added only in Python 3.3.
In earlier versions, \u stands for literal u.
In other words, in Python 2.7, this code is equivalent to:
regex = re.compile(
r"""...boring...
|[^\s`!()\[\]{};:\'".,<>?\xab\xbb01289acdu]))""",
re.U)...which is certainly not what you wanted.
The dubious regexp was found using pydiatra.
Metadata
Metadata
Assignees
Labels
bug: fixedA bug that has been fixed in a releaseA bug that has been fixed in a releasetype: fixA bug fixA bug fix