1
0
forked from VimPlug/jedi

different solution for imports in davidhalter/jedi-vim#44

This commit is contained in:
David Halter
2012-12-09 19:10:35 +01:00
parent 48a45ee55b
commit a012880c0c
3 changed files with 4 additions and 8 deletions

View File

@@ -237,7 +237,8 @@ class Script(object):
# add keywords
scopes |= keywords.get_keywords(string=goto_path, pos=self.pos)
d = set([api_classes.Definition(s) for s in scopes])
d = set([api_classes.Definition(s) for s in scopes
if not isinstance(s, imports.ImportPath._GlobalNamespace)])
return sorted(d, key=lambda x: (x.module_path, x.start_pos))
def goto(self):