[Python-checkins] r61376 - python/trunk/Modules/_heapqmodule.c

raymond.hettinger python-checkins at python.org
Fri Mar 14 06:03:45 CET 2008


Author: raymond.hettinger
Date: Fri Mar 14 06:03:44 2008
New Revision: 61376
Modified:
 python/trunk/Modules/_heapqmodule.c
Log:
Leave heapreplace() unchanged.
Modified: python/trunk/Modules/_heapqmodule.c
==============================================================================
--- python/trunk/Modules/_heapqmodule.c	(original)
+++ python/trunk/Modules/_heapqmodule.c	Fri Mar 14 06:03:44 2008
@@ -162,11 +162,6 @@
 {
 	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;
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /