From 10d7603825a9db1079a736ca709f88fe67d0b0e5 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 14 Mar 2008 05:03:44 +0000 Subject: [PATCH] Leave heapreplace() unchanged. --- Modules/_heapqmodule.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c index 703742e260..06ed74320a 100644 --- a/Modules/_heapqmodule.c +++ b/Modules/_heapqmodule.c @@ -162,11 +162,6 @@ heapreplace(PyObject *self, PyObject *args) { PyObject *heap, *item, *returnitem; - if (Py_Py3kWarningFlag && - PyErr_Warn(PyExc_DeprecationWarning, - "In 3.x, heapreplace() was removed. Use heappushpop() instead.") < 0) - return NULL; - if (!PyArg_UnpackTuple(args, "heapreplace", 2, 2, &heap, &item)) return NULL; -- 2.50.1