mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-19 06:49:38 +08:00
The now passing on_import tests should not worsen the performance of the other tests.
This commit is contained in:
@@ -135,7 +135,9 @@ class Script(object):
|
|||||||
self._evaluator, module, self._pos
|
self._evaluator, module, self._pos
|
||||||
)
|
)
|
||||||
#print(importer.completion_names(self._evaluator, True))
|
#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):
|
elif isinstance(user_stmt, pr.Import):
|
||||||
# TODO this paragraph is necessary, but not sure it works.
|
# TODO this paragraph is necessary, but not sure it works.
|
||||||
context = self._user_context.get_context()
|
context = self._user_context.get_context()
|
||||||
|
|||||||
Reference in New Issue
Block a user