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 | 2ff443fbdacafb6cdee9b3acee943a447533ea35 (patch) | |
tree | 515f683282e7e9bcdaea165e888f171042e2d0fe /inspector.py | |
parent | 8511fe1d1c482273bca55c83766bfa33ee35fc44 (diff) | |
download | astroid-2ff443fbdacafb6cdee9b3acee943a447533ea35.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 2f241de..181a3fa 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: |