1
0
forked from VimPlug/jedi

Small full_name improvements.

This commit is contained in:
Dave Halter
2014-12-08 12:38:59 +01:00
parent 8868b87d42
commit 7cc2a07cd3
2 changed files with 7 additions and 8 deletions

View File

@@ -173,10 +173,8 @@ class BaseDefinition(object):
par = self._definition
while par is not None:
if isinstance(par, pr.Import):
path += par.from_names
path += par.namespace_names
if par.relative_count == 0:
break
path += imports.ImportWrapper(self._evaluator, self._name).import_path
break
with common.ignored(AttributeError):
path.insert(0, par.name)
par = par.parent