Commit 435c6b40 authored by Stefan Behnel's avatar Stefan Behnel

fix disabling of cleanup code generation for tuple constants

parent 6f68503a
...@@ -569,7 +569,7 @@ class GlobalState(object): ...@@ -569,7 +569,7 @@ class GlobalState(object):
# create a new Python object constant # create a new Python object constant
const = self.new_py_const(type, prefix) const = self.new_py_const(type, prefix)
if cleanup_level is not None \ if cleanup_level is not None \
and cleanup_level >= Options.generate_cleanup_code: and cleanup_level <= Options.generate_cleanup_code:
cleanup_writer = self.parts['cleanup_globals'] cleanup_writer = self.parts['cleanup_globals']
cleanup_writer.put_xdecref_clear(const.cname, type, nanny=False) cleanup_writer.put_xdecref_clear(const.cname, type, nanny=False)
return const return const
......
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