summaryrefslogtreecommitdiff
path: root/inspector.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-10-12 14:24:15 +0200
committerEmile Anclin <emile.anclin@logilab.fr>2010-10-12 14:24:15 +0200
commitc6c2d9c3836d586f6edfe2a3df3a1710fe15d6aa (patch)
tree76da070c9441faa9bf6dc21dc1245592e53591e6 /inspector.py
parent30999b0f111aa5c8bb774509b3f957779a2f1706 (diff)
downloadastroid-git-c6c2d9c3836d586f6edfe2a3df3a1710fe15d6aa.tar.gz
remove old coding style
Diffstat (limited to 'inspector.py')
-rw-r--r--inspector.py4
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: