summaryrefslogtreecommitdiff
path: root/inference.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2014-07-24 16:16:46 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2014-07-24 16:16:46 +0200
commit34f9964e4bc3a209b1e137e6ae3dd7157fb7cdab (patch)
treef6f19fce349fcf63e6981a20b96080a0e6036f11 /inference.py
parentbe87286f6b843e0191c9209c64ad1533fdd99d87 (diff)
downloadastroid-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.py2
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