Commit 10d76038 authored by Raymond Hettinger's avatar Raymond Hettinger

Leave heapreplace() unchanged.

parent 1f5182b5
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment