summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_heapqmodule.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c
index 703742e..06ed743 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;