Fix a Python 2 issue in the normalizer.

This commit is contained in:
Dave Halter
2017-06-05 23:30:58 +02:00
parent c3d101f582
commit 6bf52e8fe0

View File

@@ -65,7 +65,7 @@ class PEP8Normalizer(Normalizer):
self.add_issue(722, 'Do not use bare except, specify exception instead', child)
elif typ == 'comparison':
for child in node.children:
if child.type != 'atom_expr':
if child.type not in ('atom_expr', 'power'):
continue
if len(child.children) > 2:
continue