From: Stefan Behnel Date: Fri, 11 Dec 2009 13:26:21 +0000 (+0100) Subject: cleanup X-Git-Tag: 0.12.1~44 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ecdcf430a12f73c82ad41e39a37dc25d800cc73e;p=cython.git cleanup --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index cd38b63d..e6b00487 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -3063,10 +3063,11 @@ class CascadedAssignmentNode(AssignmentNode): def analyse_types(self, env, use_temp = 0): self.rhs.analyse_types(env) - if use_temp and not self.rhs.is_simple(): - self.rhs = self.rhs.coerce_to_temp(env) - else: - self.rhs = self.rhs.coerce_to_simple(env) + if not self.rhs.is_simple(): + if use_temp: + self.rhs = self.rhs.coerce_to_temp(env) + else: + self.rhs = self.rhs.coerce_to_simple(env) from ExprNodes import CloneNode self.coerced_rhs_list = [] for lhs in self.lhs_list: