mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
Leave heapreplace() unchanged.
This commit is contained in:
parent
1f5182b572
commit
10d7603825
1 changed files with 0 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue