Last few on_import fixes.

This commit is contained in:
Dave Halter committed 2014-12-08 14:15:21 +01:00
1 parent 6cc4d71822
commit 034d782e65
4 files changed
+26 -33

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ def importer_from_error_statement(evaluator, module, error_statement, pos):
elif typ == 'import_from':
for node in nodes:
if isinstance(node, pt.Node) and node.type == 'dotted_name':
names += check_dotted(node.children[::2])
names += check_dotted(node.children)
elif node in ('.', '...'):
level += len(node.value)
elif isinstance(node, pt.Name) and node.end_pos < pos: