From 6bf52e8fe0819d5701b69ba130cfc5d7bb7f201e Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 5 Jun 2017 23:30:58 +0200 Subject: [PATCH] Fix a Python 2 issue in the normalizer. --- parso/python/normalizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parso/python/normalizer.py b/parso/python/normalizer.py index 60777ab..abd3725 100644 --- a/parso/python/normalizer.py +++ b/parso/python/normalizer.py @@ -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