From 279557cab71e4e09963643049d8827286e319cc1 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 17 Jan 2009 13:43:11 +0100 Subject: [PATCH] cleanup --- Cython/Compiler/ExprNodes.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 58a76246..d500d7a0 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2353,12 +2353,12 @@ class SimpleCallNode(CallNode): "Python object cannot be passed as a varargs parameter") # Calc result type and code fragment self.type = func_type.return_type - if self.type.is_pyobject \ - or func_type.exception_value is not None \ - or func_type.exception_check: - self.is_temp = 1 - if self.type.is_pyobject: - self.result_ctype = py_object_type + if self.type.is_pyobject: + self.result_ctype = py_object_type + self.is_temp = 1 + elif func_type.exception_value is not None \ + or func_type.exception_check: + self.is_temp = 1 # C++ exception handler if func_type.exception_check == '+': if func_type.exception_value is None: -- 2.26.2