diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-01-31 12:12:41 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-01-31 12:12:41 +0000 |
commit | 1dd8e76e72e907734cd02c4b53961a536db28258 (patch) | |
tree | 77a8ffb22d98b83798e99396cab2df3ce5da2c45 /Python/makeopcodetargets.py | |
parent | 87595dba32f7bb6cb6a08e327e988ee6cf382370 (diff) | |
download | cpython-1dd8e76e72e907734cd02c4b53961a536db28258.tar.gz |
Make Python/makeopcodetargets runnable with Python 2.3. With any luck, this
should solve the 'failed compile' on the x86 gentoo 3.x buildbot.
Diffstat (limited to 'Python/makeopcodetargets.py')
-rwxr-xr-x | Python/makeopcodetargets.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/makeopcodetargets.py b/Python/makeopcodetargets.py index 6b1ab43272..a85ac52151 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") |