summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-16 06:02:10 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-16 06:02:10 +0000
commit4a4a590eddd49bb4b2171ed05ab2ba7aaed117a2 (patch)
tree0f80229a43f988105ccef554dd65d6fae3351846 /Python/compile.c
parente4301d35c574d8149c41380047db7f6edc8e2270 (diff)
downloadcpython-4a4a590eddd49bb4b2171ed05ab2ba7aaed117a2.tar.gz
Get rid of last vestiges of BINARY_DIVIDE.
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/compile.c b/Python/compile.c
index cfc6ef199e..9ce2bf795f 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -479,11 +479,6 @@ fold_binops_on_constants(unsigned char *codestr, PyObject *consts)
case BINARY_MULTIPLY:
newconst = PyNumber_Multiply(v, w);
break;
- case BINARY_DIVIDE:
- /* Cannot fold this operation statically since
- the result can depend on the run-time presence
- of the -Qnew flag */
- return 0;
case BINARY_TRUE_DIVIDE:
newconst = PyNumber_TrueDivide(v, w);
break;
@@ -1302,7 +1297,6 @@ opcode_stack_effect(int opcode, int oparg)
case BINARY_POWER:
case BINARY_MULTIPLY:
- case BINARY_DIVIDE:
case BINARY_MODULO:
case BINARY_ADD:
case BINARY_SUBTRACT: