another Py3 fix for compiled Cython module
authorStefan Behnel <scoder@users.berlios.de>
Fri, 26 Nov 2010 16:01:19 +0000 (17:01 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 26 Nov 2010 16:01:19 +0000 (17:01 +0100)
Cython/Compiler/ParseTreeTransforms.py

index dba582f0c4c7edb2d0b4a9b4d452ec8ca68ae6c2..d0443def6ed6e5d8089dde3bd14a00e3dec59545 100644 (file)
@@ -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: