]> granicus.if.org Git - python/commitdiff
Leave heapreplace() unchanged.
authorRaymond Hettinger <python@rcn.com>
Fri, 14 Mar 2008 05:03:44 +0000 (05:03 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 14 Mar 2008 05:03:44 +0000 (05:03 +0000)
Modules/_heapqmodule.c

index 703742e26085a730519f6ed31e0edf6c76b14ad6..06ed74320ad7e427123b557e467fb0b411ad380f 100644 (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;