summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Stapleton Cordasco <graffatcolmingov@gmail.com>2018-06-29 01:45:48 +0000
committerIan Stapleton Cordasco <graffatcolmingov@gmail.com>2018-06-29 01:45:48 +0000
commita0c7f90d4fa87d59da783f2d053a0e0f1329f3d3 (patch)
treefae84de9a36aed9dceafcc34fa24b2f23eb607d1
parent33e7eae53ad513952da777cabd3654219efe0eb8 (diff)
parent6a725a0a52f44b7a84617bb3740836c9dcbebfc8 (diff)
downloadflake8-a0c7f90d4fa87d59da783f2d053a0e0f1329f3d3.tar.gz
Merge branch 'patch-1' into 'master'
Fix "invalid escape sequence" when running with -Werror See merge request pycqa/flake8!244
-rw-r--r--src/flake8/defaults.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flake8/defaults.py b/src/flake8/defaults.py
index 55cb48a..3ad959b 100644
--- a/src/flake8/defaults.py
+++ b/src/flake8/defaults.py
@@ -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
)