forked from VimPlug/jedi
fix for tar_import stuff, that was caused by http://bugs.python.org/issue16791, may affect davidhalter/jedi-vim#56
This commit is contained in:
@@ -158,8 +158,7 @@ class ImportPath(parsing.Base):
|
|||||||
return []
|
return []
|
||||||
|
|
||||||
scopes = [scope]
|
scopes = [scope]
|
||||||
scopes += itertools.chain.from_iterable(
|
scopes += remove_star_imports(scope)
|
||||||
remove_star_imports(s) for s in scopes)
|
|
||||||
|
|
||||||
# follow the rest of the import (not FS -> classes, functions)
|
# follow the rest of the import (not FS -> classes, functions)
|
||||||
if len(rest) > 1 or rest and self.is_like_search:
|
if len(rest) > 1 or rest and self.is_like_search:
|
||||||
|
|||||||
@@ -115,6 +115,9 @@ mod1.a
|
|||||||
#! ['a=1.0']
|
#! ['a=1.0']
|
||||||
from import_tree.pkg.mod1 import a
|
from import_tree.pkg.mod1 import a
|
||||||
|
|
||||||
|
#! ['import os']
|
||||||
|
from .imports import os
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
# anonymous classes
|
# anonymous classes
|
||||||
# -----------------
|
# -----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user