diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-07-24 16:16:46 +0200 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-07-24 16:16:46 +0200 |
commit | 34f9964e4bc3a209b1e137e6ae3dd7157fb7cdab (patch) | |
tree | f6f19fce349fcf63e6981a20b96080a0e6036f11 /inference.py | |
parent | be87286f6b843e0191c9209c64ad1533fdd99d87 (diff) | |
download | astroid-git-34f9964e4bc3a209b1e137e6ae3dd7157fb7cdab.tar.gz |
Fix names grabed using wildcard import in "absolute import mode"
(ie with absolute_import activated from the __future__ or with python 3).
To do so, refactor do_import_module a bit so it may be easily used for wildcard
import as well.
Fix pylint issue #58.
Diffstat (limited to 'inference.py')
-rw-r--r-- | inference.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inference.py b/inference.py index 35cce332..549e9a1d 100644 --- a/inference.py +++ b/inference.py @@ -197,7 +197,7 @@ def infer_from(self, context=None, asname=True): raise InferenceError() if asname: name = self.real_name(name) - module = self.do_import_module(self.modname) + module = self.do_import_module() try: context = copy_context(context) context.lookupname = name |