diff options
author | Raymond Hettinger <python@rcn.com> | 2008-03-14 05:03:44 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-03-14 05:03:44 (GMT) |
commit | 10d7603825a9db1079a736ca709f88fe67d0b0e5 (patch) | |
tree | 2e08f38515aab6a4400ae18f1432da2834bb583c /Modules/_heapqmodule.c | |
parent | 1f5182b5723e469ea341f71c0e89cf9a67c323dc (diff) | |
download | cpython-10d7603825a9db1079a736ca709f88fe67d0b0e5.zip cpython-10d7603825a9db1079a736ca709f88fe67d0b0e5.tar.gz cpython-10d7603825a9db1079a736ca709f88fe67d0b0e5.tar.bz2 |
Leave heapreplace() unchanged.
Diffstat (limited to 'Modules/_heapqmodule.c')
-rw-r--r-- | Modules/_heapqmodule.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c index 703742e..06ed743 100644 --- a/Modules/_heapqmodule.c +++ b/Modules/_heapqmodule.c @@ -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; |