diff options
author | Ian Cordasco <sigmavirus24@users.noreply.github.com> | 2017-05-29 08:20:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-29 08:20:13 -0500 |
commit | dec2f3fcc95c60a6d33935f5a8e16aedadcc8d5b (patch) | |
tree | 6e90b27ca4561e23f1a4269832187e1168f4d635 | |
parent | 727dc51ed5f47e2ade2869f0d994fa8410e6b8c1 (diff) | |
parent | 110a5c3bcd4ac407a471410f23f82cb6e706e6bb (diff) | |
download | pep8-dec2f3fcc95c60a6d33935f5a8e16aedadcc8d5b.tar.gz |
Merge pull request #625 from scop/py36escseq
Python 3.6 invalid escape sequence deprecation fix
-rwxr-xr-x | pycodestyle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pycodestyle.py b/pycodestyle.py index 763747e..bb96195 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -125,7 +125,7 @@ HUNK_REGEX = re.compile(r'^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@.*$') STARTSWITH_DEF_REGEX = re.compile(r'^(async\s+def|def)') STARTSWITH_TOP_LEVEL_REGEX = re.compile(r'^(async\s+def\s+|def\s+|class\s+|@)') STARTSWITH_INDENT_STATEMENT_REGEX = re.compile( - r'^\s*({0})'.format('|'.join(s.replace(' ', '\s+') for s in ( + r'^\s*({0})'.format('|'.join(s.replace(' ', r'\s+') for s in ( 'def', 'async def', 'for', 'async for', 'if', 'elif', 'else', |