From 95f9cc5bb13e09a5065283a2ba3cfa3f31cf2f78 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 26 Nov 2010 17:01:19 +0100 Subject: [PATCH] another Py3 fix for compiled Cython module --- Cython/Compiler/ParseTreeTransforms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.26.2