summaryrefslogtreecommitdiff
path: root/inference.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-03-17 13:11:50 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-03-17 13:11:50 +0100
commit48b2a7ccd271a0584c344c88928bcdbed335ceb8 (patch)
tree80a04eb8e9dfef81edaca52f194bc2010b3eb1ae /inference.py
parent3d4d3d6c8cbe6c66098072e65766d3074905e417 (diff)
downloadastroid-git-48b2a7ccd271a0584c344c88928bcdbed335ceb8.tar.gz
remove InferenceContext.startingfrom; use a set for path_wrapper
--HG-- branch : rebuild
Diffstat (limited to 'inference.py')
-rw-r--r--inference.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/inference.py b/inference.py
index e4457ec1..8522a30c 100644
--- a/inference.py
+++ b/inference.py
@@ -13,9 +13,9 @@
"""this module contains a set of functions to handle inference on astng trees
:author: Sylvain Thenault
-:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE)
+:copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE)
:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
-:copyright: 2003-2009 Sylvain Thenault
+:copyright: 2003-2010 Sylvain Thenault
:contact: mailto:thenault@gmail.com
"""
@@ -212,7 +212,7 @@ def infer_import(self, context=None, asname=True):
nodes.Import.infer = path_wrapper(infer_import)
def infer_name_module(self, name):
- context = InferenceContext(self)
+ context = InferenceContext()
context.lookupname = name
return self.infer(context, asname=False)
nodes.Import.infer_name_module = infer_name_module