diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-10-12 14:24:15 +0200 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-10-12 14:24:15 +0200 |
commit | c6c2d9c3836d586f6edfe2a3df3a1710fe15d6aa (patch) | |
tree | 76da070c9441faa9bf6dc21dc1245592e53591e6 /inspector.py | |
parent | 30999b0f111aa5c8bb774509b3f957779a2f1706 (diff) | |
download | astroid-git-c6c2d9c3836d586f6edfe2a3df3a1710fe15d6aa.tar.gz |
remove old coding style
Diffstat (limited to 'inspector.py')
-rw-r--r-- | inspector.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inspector.py b/inspector.py index 2f241de6..181a3fa3 100644 --- a/inspector.py +++ b/inspector.py @@ -188,7 +188,7 @@ class Linker(IdGeneratorMixIn, LocalsVisitor): if hasattr(node, '_handled'): return node._handled = True - if node.name in node.frame().keys(): + if node.name in node.frame(): frame = node.frame() else: # the name has been defined as 'global' in the frame and belongs @@ -196,7 +196,7 @@ class Linker(IdGeneratorMixIn, LocalsVisitor): # root locals; the frame hence has no locals_type attribute frame = node.root() try: - values = list(node.infer()) + values = node.infered() try: already_infered = frame.locals_type[node.name] for valnode in values: |