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 76abb5d commit 3527106Copy full SHA for 3527106
pycodestyle.py
@@ -497,10 +497,9 @@ def whitespace_around_keywords(logical_line):
497
if sys.version_info >= (3, 10):
498
match = MATCH_CASE_REGEX.match(logical_line)
499
if match:
500
- whitespace = match.groups()[0]
501
- if whitespace == ' ':
+ if match[1] == ' ':
502
return
503
- if whitespace == '':
+ if match[1] == '':
504
yield match.start(1), "E275 missing whitespace after keyword"
505
else:
506
yield match.start(1), "E271 multiple spaces after keyword"
0 commit comments