mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 21:34:32 +08:00
Fix a Python 2 issue in the normalizer.
This commit is contained in:
@@ -65,7 +65,7 @@ class PEP8Normalizer(Normalizer):
|
|||||||
self.add_issue(722, 'Do not use bare except, specify exception instead', child)
|
self.add_issue(722, 'Do not use bare except, specify exception instead', child)
|
||||||
elif typ == 'comparison':
|
elif typ == 'comparison':
|
||||||
for child in node.children:
|
for child in node.children:
|
||||||
if child.type != 'atom_expr':
|
if child.type not in ('atom_expr', 'power'):
|
||||||
continue
|
continue
|
||||||
if len(child.children) > 2:
|
if len(child.children) > 2:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user