Commit 1dd8e76e authored by Mark Dickinson's avatar Mark Dickinson

Make Python/makeopcodetargets runnable with Python 2.3. With any luck, this

should solve the 'failed compile' on the x86 gentoo 3.x buildbot.
parent 87595dba
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
(for compilers supporting computed gotos or "labels-as-values", such as gcc). (for compilers supporting computed gotos or "labels-as-values", such as gcc).
""" """
# This code should stay compatible with Python 2.3, at least while
# some of the buildbots have Python 2.3 as their system Python.
import imp import imp
import os import os
...@@ -25,7 +28,7 @@ def write_contents(f): ...@@ -25,7 +28,7 @@ def write_contents(f):
continue continue
targets[op] = "TARGET_%s" % opname targets[op] = "TARGET_%s" % opname
f.write("static void *opcode_targets[256] = {\n") f.write("static void *opcode_targets[256] = {\n")
f.write(",\n".join("\t&&%s" % s for s in targets)) f.write(",\n".join(["\t&&%s" % s for s in targets]))
f.write("\n};\n") f.write("\n};\n")
......
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