summaryrefslogtreecommitdiff
path: root/pep8.py
diff options
context:
space:
mode:
Diffstat (limited to 'pep8.py')
-rwxr-xr-xpep8.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index 20356b9..dc6a801 100755
--- a/pep8.py
+++ b/pep8.py
@@ -947,7 +947,7 @@ def comparison_to_singleton(logical_line, noqa):
COMPARE_SINGLETON_REVERSE_REGEX.search(logical_line))
if match:
singleton = match.group('singleton')
- same = match.group('op')
+ same = (match.group('op') == '==')
msg = "'if cond is %s:'" % (('' if same else 'not ') + singleton)
if singleton in ('None',):