Remove the ImportWrapper and replace it with something simpler.

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

No files matched your search

+1 -2
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