summaryrefslogtreecommitdiff
path: root/node_classes.py
diff options
context:
space:
mode:
Diffstat (limited to 'node_classes.py')
-rw-r--r--node_classes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_classes.py b/node_classes.py
index 50d3b120..22b033d5 100644
--- a/node_classes.py
+++ b/node_classes.py
@@ -69,7 +69,7 @@ def are_exclusive(stmt1, stmt2, exceptions=None):
node = stmt2.parent
previous = stmt2
while node:
- if stmt1_parents.has_key(node):
+ if node in stmt1_parents:
# if the common parent is a If or TryExcept statement, look if
# nodes are in exclusive branches
if isinstance(node, If) and exceptions is None: