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:
Ian Stapleton Cordasco 2018-06-29 01:45:48 +00:00
commit a0c7f90d4f

View file

@ -46,7 +46,7 @@ NOQA_INLINE_REGEXP = re.compile(
# We do not care about the ``: `` that follows ``noqa``
# We do not care about the casing of ``noqa``
# 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
)