Commit 95bbf503 authored by Stefan Behnel's avatar Stefan Behnel

fix for Python <=2.5

parent 30cf4b75
...@@ -2908,8 +2908,8 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations): ...@@ -2908,8 +2908,8 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations):
import traceback, sys import traceback, sys
traceback.print_exc(file=sys.stdout) traceback.print_exc(file=sys.stdout)
NODE_TYPE_ORDER = (ExprNodes.CharNode, ExprNodes.IntNode, NODE_TYPE_ORDER = [ExprNodes.CharNode, ExprNodes.IntNode,
ExprNodes.LongNode, ExprNodes.FloatNode) ExprNodes.LongNode, ExprNodes.FloatNode]
def _widest_node_class(self, *nodes): def _widest_node_class(self, *nodes):
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment