Commit e7c0e635 authored by Stefan Behnel's avatar Stefan Behnel

drop dead code in Symtab.py: module name is properly determined elsewhere

parent 7e0518d3
...@@ -971,13 +971,7 @@ class ModuleScope(Scope): ...@@ -971,13 +971,7 @@ class ModuleScope(Scope):
self.parent_module = parent_module self.parent_module = parent_module
outer_scope = Builtin.builtin_scope outer_scope = Builtin.builtin_scope
Scope.__init__(self, name, outer_scope, parent_module) Scope.__init__(self, name, outer_scope, parent_module)
if name != "__init__": self.module_name = EncodedString(name)
self.module_name = name
else:
# Treat Spam/__init__.pyx specially, so that when Python loads
# Spam/__init__.so, initSpam() is defined.
self.module_name = parent_module.module_name
self.module_name = EncodedString(self.module_name)
self.context = context self.context = context
self.module_cname = Naming.module_cname self.module_cname = Naming.module_cname
self.module_dict_cname = Naming.moddict_cname self.module_dict_cname = Naming.moddict_cname
......
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