From 01d9239a7d16292be3192fdc1e51ea083689af71 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Fri, 16 Oct 2009 13:20:15 +0200 Subject: [PATCH] Fix Parsing.py so it compiles with Cython --- Cython/Compiler/Parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2