Commit 0927822c authored by Stefan Behnel's avatar Stefan Behnel

minor code cleanup

parent f80fe6d7
...@@ -6520,7 +6520,7 @@ class FromImportStatNode(StatNode): ...@@ -6520,7 +6520,7 @@ class FromImportStatNode(StatNode):
entry = env.lookup(target.name) entry = env.lookup(target.name)
# check whether or not entry is already cimported # check whether or not entry is already cimported
if (entry.is_type and entry.type.name == name if (entry.is_type and entry.type.name == name
and hasattr(entry.type, 'module_name')): and hasattr(entry.type, 'module_name')):
if entry.type.module_name == self.module.module_name.value: if entry.type.module_name == self.module.module_name.value:
# cimported with absolute name # cimported with absolute name
continue continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment