Commit 55d5e576 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix includes from multiple cimports from same package.

parent e5ef810e
...@@ -5639,6 +5639,7 @@ class CImportStatNode(StatNode): ...@@ -5639,6 +5639,7 @@ class CImportStatNode(StatNode):
if self.as_name: if self.as_name:
env.declare_module(self.as_name, module_scope, self.pos) env.declare_module(self.as_name, module_scope, self.pos)
else: else:
env.add_imported_module(module_scope)
env.declare_module(top_name, top_module_scope, self.pos) env.declare_module(top_name, top_module_scope, self.pos)
else: else:
name = self.as_name or self.module_name name = self.as_name or self.module_name
......
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