From: Stefan Behnel Date: Fri, 12 Nov 2010 22:28:54 +0000 (+0100) Subject: fix for Python <=2.5 X-Git-Tag: 0.14.alpha0~160 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=95bbf503603c97cde60795ca24f15901ccfb9ee2;p=cython.git fix for Python <=2.5 --- 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: