From 435c6b400c19b193cdb56fd7aa4e0acb0df11070 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 17 Nov 2010 08:27:15 +0100 Subject: [PATCH] fix disabling of cleanup code generation for tuple constants --- Cython/Compiler/Code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2