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 36389f0 commit c386609Copy full SHA for c386609
pep8.py
@@ -947,7 +947,7 @@ def comparison_to_singleton(logical_line, noqa):
947
COMPARE_SINGLETON_REVERSE_REGEX.search(logical_line))
948
if match:
949
singleton = match.group('singleton')
950
- same = match.group('op')
+ same = (match.group('op') == '==')
951
952
msg = "'if cond is %s:'" % (('' if same else 'not ') + singleton)
953
if singleton in ('None',):
0 commit comments