From: Stefan Behnel Date: Sat, 17 Jan 2009 12:43:11 +0000 (+0100) Subject: cleanup X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=279557cab71e4e09963643049d8827286e319cc1;p=cython.git cleanup --- 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: