Mercurial > cpython-lru_cache-weakref
diff Python/makeopcodetargets.py @ 51202:df090597afaa
Make Python/makeopcodetargets runnable with Python 2.3. With any luck, this
should solve the 'failed compile' on the x86 gentoo 3.x buildbot.
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sat, 31 Jan 2009 12:12:41 +0000 |
| parents | d86e23318b41 |
| children | f197407bdba2 fcfe324663a6 |
line wrap: on
line diff
--- a/Python/makeopcodetargets.py Sat Jan 31 03:57:19 2009 +0000 +++ b/Python/makeopcodetargets.py Sat Jan 31 12:12:41 2009 +0000 @@ -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 @@ 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")
