We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca53501 commit 110a5c3Copy full SHA for 110a5c3
pycodestyle.py
@@ -124,7 +124,7 @@
124
STARTSWITH_DEF_REGEX = re.compile(r'^(async\s+def|def)')
125
STARTSWITH_TOP_LEVEL_REGEX = re.compile(r'^(async\s+def\s+|def\s+|class\s+|@)')
126
STARTSWITH_INDENT_STATEMENT_REGEX = re.compile(
127
- r'^\s*({0})'.format('|'.join(s.replace(' ', '\s+') for s in (
+ r'^\s*({0})'.format('|'.join(s.replace(' ', r'\s+') for s in (
128
'def', 'async def',
129
'for', 'async for',
130
'if', 'elif', 'else',
0 commit comments