1
0
forked from VimPlug/jedi

The now passing on_import tests should not worsen the performance of the other tests.

This commit is contained in:
Dave Halter
2014-11-26 03:11:22 +01:00
parent f24a3bf997
commit cd1e07a532

View File

@@ -135,7 +135,9 @@ class Script(object):
self._evaluator, module, self._pos
)
#print(importer.completion_names(self._evaluator, True))
return [(name, module) for name in importer.completion_names(self._evaluator, True)]
if importer is not None:
names = importer.completion_names(self._evaluator, True)
return [(name, module) for name in names]
elif isinstance(user_stmt, pr.Import):
# TODO this paragraph is necessary, but not sure it works.
context = self._user_context.get_context()