Mercurial > cpython-lru_cache-weakref
diff Python/makeopcodetargets.py @ 71402:d30b54ffd5e8
excise the remains of STOP_CODE, which hasn't done anything useful for years
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 17 Jul 2011 22:49:50 -0500 |
| parents | 3c9232a684ae |
| children |
line wrap: on
line diff
--- a/Python/makeopcodetargets.py Sun Jul 17 19:06:03 2011 +0800 +++ b/Python/makeopcodetargets.py Sun Jul 17 22:49:50 2011 -0500 @@ -23,9 +23,6 @@ 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]))
