1
0
forked from VimPlug/jedi

Relative imports with more than one level did not work

Fixes #784.
This commit is contained in:
Dave Halter
2017-09-14 22:05:04 +02:00
parent ab84030ad2
commit e389c61377
5 changed files with 26 additions and 4 deletions

View File

@@ -65,9 +65,9 @@ import datetime.date
#? 21 ['import']
from import_tree.pkg import pkg
#? 49 ['a', '__name__', '__doc__', '__file__', '__package__']
#? 49 ['a', 'foobar', '__name__', '__doc__', '__file__', '__package__']
from import_tree.pkg.mod1 import not_existant, # whitespace before
#? ['a', '__name__', '__doc__', '__file__', '__package__']
#? ['a', 'foobar', '__name__', '__doc__', '__file__', '__package__']
from import_tree.pkg.mod1 import not_existant,
#? 22 ['mod1']
from import_tree.pkg. import mod1