From: Stefan Behnel Date: Thu, 27 Nov 2008 13:37:06 +0000 (+0100) Subject: another simplification after Dag's cleanup X-Git-Tag: 0.11-beta~195 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=01e1bf59d9dba7ac3d5629ec586c1ab7db6131f6;p=cython.git another simplification after Dag's cleanup --- 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: