summaryrefslogtreecommitdiff
path: root/builder.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 /builder.py
parentb71845b1a454e4abda861ddd99f4767bcc7c4d54 (diff)
downloadastroid-git-80abd40da687c4719c9e8d4f04c8947dc24c9f0e.tar.gz
remove other has_key occurences
Diffstat (limited to 'builder.py')
-rw-r--r--builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/builder.py b/builder.py
index f4563ec4..51be50a3 100644
--- a/builder.py
+++ b/builder.py
@@ -153,7 +153,7 @@ class ASTNGBuilder:
"""recursive method which create a partial ast from real objects
(only function, class, and method are handled)
"""
- if self._done.has_key(obj):
+ if obj in self._done:
return self._done[obj]
self._done[obj] = node
for name in dir(obj):