Skip to content

Commit a988a67

Browse files
authored
update patch
1 parent 0d70cc8 commit a988a67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycodestyle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@
121121
OPERATOR_REGEX = re.compile(r'(?:[^,\s])(\s*)(?:[-+*/|!<=>%&^]+)(\s*)')
122122
LAMBDA_REGEX = re.compile(r'\blambda\b')
123123
HUNK_REGEX = re.compile(r'^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@.*$')
124-
STARTSWITH_DEF_REGEX = re.compile(r'^(async\s+def|def)')
124+
STARTSWITH_DEF_REGEX = re.compile(r'^(async\b+def|def)')
125125
STARTSWITH_TOP_LEVEL_REGEX = re.compile(r'^(async\s+def\s+|def\s+|class\s+|@)')
126126
STARTSWITH_INDENT_STATEMENT_REGEX = re.compile(
127-
r'^\s*({0})\s'.format('|'.join(s.replace(' ', '\s+') for s in (
127+
r'^\s*({0})\b'.format('|'.join(s.replace(' ', '\s+') for s in (
128128
'def', 'async def',
129129
'for', 'async for',
130130
'if', 'elif', 'else',

0 commit comments

Comments
 (0)