summaryrefslogtreecommitdiff
path: root/inference.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-02-17 09:33:10 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-02-17 09:33:10 +0100
commitfc5c916b68953364f03df49918c1a4c6218f4601 (patch)
tree74a97d66912b4c0164d55d01cd73568f86708978 /inference.py
parent799a6102edc88757ee0e35dbfc8db32bac67ad59 (diff)
downloadastroid-git-fc5c916b68953364f03df49918c1a4c6218f4601.tar.gz
update inference and infutils from default/stable branch
--HG-- branch : rebuild
Diffstat (limited to 'inference.py')
-rw-r--r--inference.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/inference.py b/inference.py
index 1bd424b7..e0b216be 100644
--- a/inference.py
+++ b/inference.py
@@ -181,15 +181,16 @@ nodes.AssName.infer_lhs = infer_name # won't work with a path wrapper
def infer_callfunc(self, context=None):
"""infer a CallFunc node by trying to guess what the function returns"""
- context = context.clone()
- context.callcontext = CallContext(self.args, self.starargs, self.kwargs)
+ callcontext = context.clone()
+ callcontext.callcontext = CallContext(self.args, self.starargs, self.kwargs)
+ callcontext.boundnode = None
for callee in self.func.infer(context):
if callee is YES:
yield callee
continue
try:
if hasattr(callee, 'infer_call_result'):
- for infered in callee.infer_call_result(self, context):
+ for infered in callee.infer_call_result(self, callcontext):
yield infered
except InferenceError:
## XXX log error ?