Commit 6a222a37 authored by Lisandro Dalcin's avatar Lisandro Dalcin

fix globals cleanup code generation

--HG--
extra : rebase_source : 892238115e1b0c2f36411ee14110c2207230ca02
parent 62410bbe
......@@ -511,6 +511,11 @@ class GlobalState(object):
w.putln("}")
w.exit_cfunc_scope()
if Options.generate_cleanup_code:
w = self.parts['cleanup_globals']
w.putln("}")
w.exit_cfunc_scope()
if Options.generate_cleanup_code:
w = self.parts['cleanup_module']
w.putln("}")
......
......@@ -1779,7 +1779,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
# code.putln("Py_DECREF(%s); %s = 0;" % (
# code.entry_as_pyobject(entry), entry.cname))
code.putln("Py_INCREF(Py_None); return Py_None;")
code.putln('}')
def generate_main_method(self, env, code):
module_is_main = "%s%s" % (Naming.module_is_main, self.full_module_name.replace('.', '__'))
......
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