[Python-checkins] r69133 - python/branches/py3k/Python/makeopcodetargets.py
mark.dickinson
python-checkins at python.org
Sat Jan 31 13:12:41 CET 2009
Author: mark.dickinson
Date: Sat Jan 31 13:12:41 2009
New Revision: 69133
Log:
Make Python/makeopcodetargets runnable with Python 2.3. With any luck, this
should solve the 'failed compile' on the x86 gentoo 3.x buildbot.
Modified:
python/branches/py3k/Python/makeopcodetargets.py
Modified: python/branches/py3k/Python/makeopcodetargets.py
==============================================================================
--- python/branches/py3k/Python/makeopcodetargets.py (original)
+++ python/branches/py3k/Python/makeopcodetargets.py Sat Jan 31 13:12:41 2009
@@ -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")
More information about the Python-checkins
mailing list