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
+1 -1
View File
@@ -362,7 +362,7 @@ def _name_to_types(evaluator, context, name):
elif node.isinstance(tree.WithStmt):
types = context.eval_node(node.node_from_name(name))
elif isinstance(node, tree.Import):
types = imports.ImportWrapper(context, name).follow()
types = imports.infer_import(context, name)
elif node.type in ('funcdef', 'classdef'):
types = _apply_decorators(evaluator, context, node)
elif node.type == 'global_stmt':