From 01e1bf59d9dba7ac3d5629ec586c1ab7db6131f6 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 27 Nov 2008 14:37:06 +0100 Subject: [PATCH] another simplification after Dag's cleanup --- Cython/Compiler/UtilNodes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Cython/Compiler/UtilNodes.py b/Cython/Compiler/UtilNodes.py index 58592117..3563d490 100644 --- a/Cython/Compiler/UtilNodes.py +++ b/Cython/Compiler/UtilNodes.py @@ -79,9 +79,8 @@ class TempsBlockNode(Node): def generate_execution_code(self, code): for handle in self.temps: - managed = handle.needs_cleanup or not handle.type.is_pyobject handle.temp = code.funcstate.allocate_temp( - handle.type, manage_ref=managed) + handle.type, manage_ref=handle.needs_cleanup) self.body.generate_execution_code(code) for handle in self.temps: if handle.needs_cleanup: -- 2.26.2