diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c index 703742e2608..06ed74320ad 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;