Leave heapreplace() unchanged.

This commit is contained in:
Raymond Hettinger 2008-03-14 05:03:44 +00:00
parent 1f5182b572
commit 10d7603825

View file

@ -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;