summaryrefslogtreecommitdiff
path: root/astroid/builder.py
diff options
context:
space:
mode:
authorƁukasz Rogalski <rogalski.91@gmail.com>2017-02-05 13:51:58 +0100
committerGitHub <noreply@github.com>2017-02-05 13:51:58 +0100
commit3e6ef99928137a396a6ee9c75351f4194b2471e8 (patch)
treef2d58cd93668e9ccbb1fe4a94dcb4b1668b8da4c /astroid/builder.py
parentd0b5acdfebcdda5c949584c32a8cbc0f31d5cf25 (diff)
downloadastroid-git-3e6ef99928137a396a6ee9c75351f4194b2471e8.tar.gz
Fix namespace population when wildcard import is used (#397)
Fix PyCQA/pylint#1312
Diffstat (limited to 'astroid/builder.py')
-rw-r--r--astroid/builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/builder.py b/astroid/builder.py
index ee3b7e25..6dc214cb 100644
--- a/astroid/builder.py
+++ b/astroid/builder.py
@@ -214,7 +214,7 @@ class AstroidBuilder(raw_building.InspectBuilder):
imported = node.do_import_module()
except exceptions.AstroidBuildingError:
continue
- for name in imported.public_names():
+ for name in imported.wildcard_import_names():
node.parent.set_local(name, node)
sort_locals(node.parent.scope().locals[name])
else: