From: Stefan Behnel Date: Wed, 17 Nov 2010 07:27:15 +0000 (+0100) Subject: fix disabling of cleanup code generation for tuple constants X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=435c6b400c19b193cdb56fd7aa4e0acb0df11070;p=cython.git fix disabling of cleanup code generation for tuple constants --- diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 7592de39..e2954c29 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -569,7 +569,7 @@ class GlobalState(object): # create a new Python object constant const = self.new_py_const(type, prefix) 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.put_xdecref_clear(const.cname, type, nanny=False) return const