From 95bbf503603c97cde60795ca24f15901ccfb9ee2 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 12 Nov 2010 23:28:54 +0100 Subject: [PATCH] fix for Python <=2.5 --- Cython/Compiler/Optimize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index 9e4c66ef..8e31cc0b 100644 --- a/Cython/Compiler/Optimize.py +++ b/Cython/Compiler/Optimize.py @@ -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: -- 2.26.2