summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-31 12:12:41 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-31 12:12:41 (GMT)
commit72ead17c8a7a462075ee907d2e6dc54f1fbd3ce9 (patch)
tree4424d8dcdf33a8944bd9b5a6a84c1609fe276b25
parente9deddbf8c4f7bde3217d5d12cb933d6ea590840 (diff)
downloadcpython-72ead17c8a7a462075ee907d2e6dc54f1fbd3ce9.zip
cpython-72ead17c8a7a462075ee907d2e6dc54f1fbd3ce9.tar.gz
cpython-72ead17c8a7a462075ee907d2e6dc54f1fbd3ce9.tar.bz2
Make Python/makeopcodetargets runnable with Python 2.3. With any luck, this
should solve the 'failed compile' on the x86 gentoo 3.x buildbot.
-rwxr-xr-xPython/makeopcodetargets.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/makeopcodetargets.py b/Python/makeopcodetargets.py
index 6b1ab43..a85ac52 100755
--- a/Python/makeopcodetargets.py
+++ b/Python/makeopcodetargets.py
@@ -3,6 +3,9 @@
(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 os
@@ -25,7 +28,7 @@ def write_contents(f):
continue
targets[op] = "TARGET_%s" % opname
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")