diff options
author | Brett Cannon <bcannon@gmail.com> | 2006-08-25 05:05:30 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2006-08-25 05:05:30 (GMT) |
commit | e2e23ef97da1ce44c604d86d1f21c2701d7e581f (patch) | |
tree | bca7dc409238d532748ec23f9ffb89c7d4f99e01 /Python/peephole.c | |
parent | 5f5cfd121db044b5adf5d9da29fed0d31fec1814 (diff) | |
download | cpython-e2e23ef97da1ce44c604d86d1f21c2701d7e581f.zip cpython-e2e23ef97da1ce44c604d86d1f21c2701d7e581f.tar.gz cpython-e2e23ef97da1ce44c604d86d1f21c2701d7e581f.tar.bz2 |
Remove the UNARY_CONVERT opcode (was used for backticks). Also bumped up the
import MAGIC number.
Diffstat (limited to 'Python/peephole.c')
-rw-r--r-- | Python/peephole.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/peephole.c b/Python/peephole.c index 836d398..1459960 100644 --- a/Python/peephole.c +++ b/Python/peephole.c @@ -189,9 +189,6 @@ fold_unaryops_on_constants(unsigned char *codestr, PyObject *consts) if (PyObject_IsTrue(v) == 1) newconst = PyNumber_Negative(v); break; - case UNARY_CONVERT: - newconst = PyObject_Repr(v); - break; case UNARY_INVERT: newconst = PyNumber_Invert(v); break; @@ -470,7 +467,6 @@ PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names, /* Fold unary ops on constants. LOAD_CONST c1 UNARY_OP --> LOAD_CONST unary_op(c) */ case UNARY_NEGATIVE: - case UNARY_CONVERT: case UNARY_INVERT: if (lastlc >= 1 && ISBASICBLOCK(blocks, i-3, 4) && |