summaryrefslogtreecommitdiff
path: root/node_classes.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-10-05 16:55:49 +0200
committerEmile Anclin <emile.anclin@logilab.fr>2010-10-05 16:55:49 +0200
commit80abd40da687c4719c9e8d4f04c8947dc24c9f0e (patch)
tree153c43e9d68cac183446b370b12cd26a93c50462 /node_classes.py
parentb71845b1a454e4abda861ddd99f4767bcc7c4d54 (diff)
downloadastroid-git-80abd40da687c4719c9e8d4f04c8947dc24c9f0e.tar.gz
remove other has_key occurences
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: