From: Dag Sverre Seljebotn Date: Fri, 16 Oct 2009 11:20:15 +0000 (+0200) Subject: Fix Parsing.py so it compiles with Cython X-Git-Tag: 0.13.beta0~2^2~121^2~30 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=01d9239a7d16292be3192fdc1e51ea083689af71;p=cython.git Fix Parsing.py so it compiles with Cython --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index c567bdcd..2f28af04 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -924,7 +924,7 @@ def flatten_parallel_assignments(input, output): # individual elements. This transformation is applied # recursively, so that nested structures get matched as well. rhs = input[-1] - if not rhs.is_sequence_constructor or not sum(lhs.is_sequence_constructor for lhs in input[:-1]): + if not rhs.is_sequence_constructor or not sum([lhs.is_sequence_constructor for lhs in input[:-1]]): output.append(input) return