diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-07-18 03:49:50 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-07-18 03:49:50 (GMT) |
commit | 76f7f4d979fcec9cff5175044f1c05123f0d7def (patch) | |
tree | e10ea5e2900a83baa68af193f1df7c86b25cde72 /Python | |
parent | 42d1320c06eec275de5a080a5285f9cd7c08d15d (diff) | |
download | cpython-76f7f4d979fcec9cff5175044f1c05123f0d7def.zip cpython-76f7f4d979fcec9cff5175044f1c05123f0d7def.tar.gz cpython-76f7f4d979fcec9cff5175044f1c05123f0d7def.tar.bz2 |
excise the remains of STOP_CODE, which hasn't done anything useful for years
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 2 | ||||
-rwxr-xr-x | Python/makeopcodetargets.py | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 6d49363..068da6f 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1347,8 +1347,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) x to NULL, err to nonzero, or why to anything but WHY_NOT, and that no operation that succeeds does this! */ - /* case STOP_CODE: this is an error! */ - TARGET(NOP) FAST_DISPATCH(); diff --git a/Python/makeopcodetargets.py b/Python/makeopcodetargets.py index 5d8e5a9..d9a0855 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])) |