From 91bce96e8f8378fea75a7df9781a99f2203e1b2c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 1 May 2010 18:10:42 +0200 Subject: [PATCH] code cleanup --- Cython/Compiler/ExprNodes.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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): -- 2.26.2