diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-03-17 13:11:50 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-03-17 13:11:50 +0100 |
commit | 48b2a7ccd271a0584c344c88928bcdbed335ceb8 (patch) | |
tree | 80a04eb8e9dfef81edaca52f194bc2010b3eb1ae /inference.py | |
parent | 3d4d3d6c8cbe6c66098072e65766d3074905e417 (diff) | |
download | astroid-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.py | 6 |
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 |