1
0
forked from VimPlug/jedi

Remove the ImportWrapper and replace it with something simpler.

This commit is contained in:
Dave Halter
2016-12-17 16:08:37 +01:00
parent 173c939956
commit 57857b6332
7 changed files with 53 additions and 74 deletions

View File

@@ -500,8 +500,7 @@ class Completion(BaseDefinition):
definition = self._definition
if definition.isinstance(tree.Import):
raise DeprecationWarning
i = imports.ImportWrapper(self._evaluator, self._name)
return i.follow()
return imports.infer_import(self._evaluator, self._name)
return super(Completion, self)._follow_statements_imports()
@memoize_method