fixed more import problems (also with the import usage), definitely fixes davidhalter/jedi-vim#152

This commit is contained in:
David Halter committed 2013-08-07 10:24:28 +04:30
1 parent f72816a702
commit c6e08221ce
4 files changed
+15 -8

No files matched your search

+2 -1
View File
@@ -112,7 +112,8 @@ class Script(object):
names = s.get_magic_method_names()
else:
if isinstance(s, imports.ImportPath):
if like == 'import':
under = like + self._module.get_path_after_cursor()
if under == 'import':
if not completion_line.endswith('import import'):
continue
a = s.import_stmt.alias