Remove Import.alias_name_part, it was simply an alias for another lookup.

This commit is contained in:
Dave Halter
2014-09-26 16:32:36 +02:00
parent 03e01631cc
commit 27444ed64d
3 changed files with 3 additions and 11 deletions
+2 -2
View File
@@ -320,11 +320,11 @@ class Evaluator(object):
def goto(self, stmt, call_path):
if isinstance(stmt, pr.Import):
# Nowhere to goto for aliases
if stmt.alias_name_part == call_path[0]:
if stmt.alias == call_path[0]:
return [call_path[0]]
names = stmt.get_all_import_names()
if stmt.alias_name_part:
if stmt.alias:
names = names[:-1]
# Filter names that are after our Name
removed_names = len(names) - names.index(call_path[0]) - 1