From: Stefan Behnel Date: Fri, 26 Nov 2010 16:01:19 +0000 (+0100) Subject: another Py3 fix for compiled Cython module X-Git-Tag: 0.14.alpha0~57 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=95f9cc5bb13e09a5065283a2ba3cfa3f31cf2f78;p=cython.git another Py3 fix for compiled Cython module --- diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index dba582f0..d0443def 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -331,13 +331,13 @@ def eliminate_rhs_duplicates(expr_list_list, ref_node_sequence): if node in ref_nodes: return ref_nodes[node] elif node.is_sequence_constructor: - node.args = map(substitute_nodes, node.args) + node.args = list(map(substitute_nodes, node.args)) return node # replace nodes inside of the common subexpressions for node in ref_nodes: 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 for expr_list in expr_list_list: