Commit 00137712 authored by Stefan Behnel's avatar Stefan Behnel

remove duplicated condition

parent 2ab90c4c
......@@ -1923,7 +1923,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.globalstate.get_py_string_const(
EncodedString(decode_filename(module_path))).cname,
code.error_goto(self.pos)))
if os.path.splitext(os.path.basename(module_path))[0] == '__init__':
if env.is_package:
# compiling a package => set __path__ as well
temp = code.funcstate.allocate_temp(py_object_type, True)
code.putln('%s = Py_BuildValue("[O]", %s); %s' % (
......
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