Skip to content

Commit d82db22

Browse files
author
mark.dickinson
committed
Make Python/makeopcodetargets runnable with Python 2.3. With any luck, this
should solve the 'failed compile' on the x86 gentoo 3.x buildbot. git-svn-id: http://svn.python.org/projects/python/branches/py3k@69133 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 828ce7c commit d82db22

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Python/makeopcodetargets.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
(for compilers supporting computed gotos or "labels-as-values", such as gcc).
44
"""
55

6+
# This code should stay compatible with Python 2.3, at least while
7+
# some of the buildbots have Python 2.3 as their system Python.
8+
69
import imp
710
import os
811

@@ -25,7 +28,7 @@ def write_contents(f):
2528
continue
2629
targets[op] = "TARGET_%s" % opname
2730
f.write("static void *opcode_targets[256] = {\n")
28-
f.write(",\n".join("\t&&%s" % s for s in targets))
31+
f.write(",\n".join(["\t&&%s" % s for s in targets]))
2932
f.write("\n};\n")
3033

3134

0 commit comments

Comments
 (0)