Care for import aliases better.

This commit is contained in:
Dave Halter
2014-11-19 12:45:39 +01:00
parent 1c240e75d3
commit e630eeb397
3 changed files with 29 additions and 2 deletions

View File

@@ -108,6 +108,15 @@ def scope_from_import_variable_with_parenthesis():
#? ['foobarbaz']
foobarbaz
def as_imports():
from import_tree.mod1 import a as xyz
#? int()
xyz
import import_tree.mod1 as foo
#? int()
foo.a
# -----------------
# std lib modules
# -----------------