Kaydet (Commit) 10d76038 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Leave heapreplace() unchanged.

üst 1f5182b5
...@@ -162,11 +162,6 @@ heapreplace(PyObject *self, PyObject *args) ...@@ -162,11 +162,6 @@ heapreplace(PyObject *self, PyObject *args)
{ {
PyObject *heap, *item, *returnitem; 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)) if (!PyArg_UnpackTuple(args, "heapreplace", 2, 2, &heap, &item))
return NULL; 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