summaryrefslogtreecommitdiff
path: root/Python/makeopcodetargets.py
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2012-05-25 10:27:43 +0200
committerHynek Schlawack <hs@ox.cx>2012-05-25 10:27:43 +0200
commit7d3231aef0c9674f655a25ed315edd98f67680a0 (patch)
tree1d6785c307becbd6ca5b29f85896cf8a1ab818b6 /Python/makeopcodetargets.py
parent8f03939f0b36dc9a9595cbe95a09ff439e6c6110 (diff)
parentfdf238dbeea157b3d633de1ce40b147a60c1db44 (diff)
downloadcpython-7d3231aef0c9674f655a25ed315edd98f67680a0.tar.gz
#4841: Fix FileIO constructor to honor closefd when called repeatedly
Patch by Victor Stinner.
Diffstat (limited to 'Python/makeopcodetargets.py')
-rwxr-xr-xPython/makeopcodetargets.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/makeopcodetargets.py b/Python/makeopcodetargets.py
index 5d8e5a9a46..d9a085552f 100755
--- a/Python/makeopcodetargets.py
+++ b/Python/makeopcodetargets.py
@@ -23,9 +23,6 @@ def write_contents(f):
opcode = find_module("opcode")
targets = ['_unknown_opcode'] * 256
for opname, op in opcode.opmap.items():
- if opname == "STOP_CODE":
- # XXX opcode not implemented
- continue
targets[op] = "TARGET_%s" % opname
f.write("static void *opcode_targets[256] = {\n")
f.write(",\n".join([" &&%s" % s for s in targets]))