diff options
| author | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | 2018-06-29 01:45:48 +0000 |
|---|---|---|
| committer | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | 2018-06-29 01:45:48 +0000 |
| commit | a0c7f90d4fa87d59da783f2d053a0e0f1329f3d3 (patch) | |
| tree | fae84de9a36aed9dceafcc34fa24b2f23eb607d1 | |
| parent | 33e7eae53ad513952da777cabd3654219efe0eb8 (diff) | |
| parent | 6a725a0a52f44b7a84617bb3740836c9dcbebfc8 (diff) | |
| download | flake8-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.py | 2 |
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 ) |
