From: Stefan Behnel Date: Sat, 1 May 2010 16:10:42 +0000 (+0200) Subject: code cleanup X-Git-Tag: 0.13.beta0~120 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=91bce96e8f8378fea75a7df9781a99f2203e1b2c;p=cython.git code cleanup --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 169e93a5..eb164973 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -326,11 +326,8 @@ class ExprNode(Node): # we ensure that all disposal has been done by the # time we get the result. self.analyse_types(env) - bool = self.coerce_to_boolean(env) - if not bool.is_simple(): - bool = bool.coerce_to_temp(env) - return bool - + return self.coerce_to_boolean(env).coerce_to_simple(env) + # --------------- Type Inference ----------------- def type_dependencies(self, env):