Commit 95f9cc5b authored by Stefan Behnel's avatar Stefan Behnel

another Py3 fix for compiled Cython module

parent 5b101d97
...@@ -331,13 +331,13 @@ def eliminate_rhs_duplicates(expr_list_list, ref_node_sequence): ...@@ -331,13 +331,13 @@ def eliminate_rhs_duplicates(expr_list_list, ref_node_sequence):
if node in ref_nodes: if node in ref_nodes:
return ref_nodes[node] return ref_nodes[node]
elif node.is_sequence_constructor: elif node.is_sequence_constructor:
node.args = map(substitute_nodes, node.args) node.args = list(map(substitute_nodes, node.args))
return node return node
# replace nodes inside of the common subexpressions # replace nodes inside of the common subexpressions
for node in ref_nodes: for node in ref_nodes:
if node.is_sequence_constructor: if node.is_sequence_constructor:
node.args = map(substitute_nodes, node.args) node.args = list(map(substitute_nodes, node.args))
# replace common subexpressions on all rhs items # replace common subexpressions on all rhs items
for expr_list in expr_list_list: for expr_list in expr_list_list:
......
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