fix for Python <=2.5
authorStefan Behnel <scoder@users.berlios.de>
Fri, 12 Nov 2010 22:28:54 +0000 (23:28 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 12 Nov 2010 22:28:54 +0000 (23:28 +0100)
Cython/Compiler/Optimize.py

index 9e4c66ef57f419a15d4d9043ea4e3575799e460c..8e31cc0beda8fbf356cb236dfb07d1e6d8056207 100644 (file)
@@ -2908,8 +2908,8 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations):
             import traceback, sys
             traceback.print_exc(file=sys.stdout)
 
-    NODE_TYPE_ORDER = (ExprNodes.CharNode, ExprNodes.IntNode,
-                       ExprNodes.LongNode, ExprNodes.FloatNode)
+    NODE_TYPE_ORDER = [ExprNodes.CharNode, ExprNodes.IntNode,
+                       ExprNodes.LongNode, ExprNodes.FloatNode]
 
     def _widest_node_class(self, *nodes):
         try: