Commit 01d9239a authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Fix Parsing.py so it compiles with Cython

parent 0abb7f3f
...@@ -924,7 +924,7 @@ def flatten_parallel_assignments(input, output): ...@@ -924,7 +924,7 @@ def flatten_parallel_assignments(input, output):
# individual elements. This transformation is applied # individual elements. This transformation is applied
# recursively, so that nested structures get matched as well. # recursively, so that nested structures get matched as well.
rhs = input[-1] 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) output.append(input)
return return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment