From: Raymond Hettinger Date: Fri, 14 Mar 2008 05:03:44 +0000 (+0000) Subject: Leave heapreplace() unchanged. X-Git-Tag: v2.6a2~330 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10d7603825a9db1079a736ca709f88fe67d0b0e5;p=python Leave heapreplace() unchanged. --- 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;