Commit f5a6bc37 authored by Stefan Behnel's avatar Stefan Behnel

simplify code by inverting negated comparison

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