mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 15:44:17 +00:00
Merge branch 'patch-1' into 'master'
Fix "invalid escape sequence" when running with -Werror See merge request pycqa/flake8!244
This commit is contained in:
commit
a0c7f90d4f
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ NOQA_INLINE_REGEXP = re.compile(
|
||||||
# We do not care about the ``: `` that follows ``noqa``
|
# We do not care about the ``: `` that follows ``noqa``
|
||||||
# We do not care about the casing of ``noqa``
|
# We do not care about the casing of ``noqa``
|
||||||
# We want a comma-separated list of errors
|
# We want a comma-separated list of errors
|
||||||
'# noqa(?:: (?P<codes>([A-Z][0-9]+(?:[,\s]+)?)+))?',
|
r'# noqa(?:: (?P<codes>([A-Z][0-9]+(?:[,\s]+)?)+))?',
|
||||||
re.IGNORECASE
|
re.IGNORECASE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue