[Python-checkins] r61634 - python/trunk/Modules/itertoolsmodule.c

raymond.hettinger python-checkins at python.org
Wed Mar 19 19:01:58 CET 2008


Author: raymond.hettinger
Date: Wed Mar 19 19:01:58 2008
New Revision: 61634

Modified:
   python/trunk/Modules/itertoolsmodule.c
Log:
Remove itertools warnings I had added before the 2-to-3 handled the migration.

Modified: python/trunk/Modules/itertoolsmodule.c
==============================================================================
--- python/trunk/Modules/itertoolsmodule.c	(original)
+++ python/trunk/Modules/itertoolsmodule.c	Wed Mar 19 19:01:58 2008
@@ -1445,11 +1445,6 @@
 	imapobject *lz;
 	Py_ssize_t numargs, i;
 
-	if (Py_Py3kWarningFlag &&
-	    PyErr_Warn(PyExc_DeprecationWarning, 
-		       "In 3.x, itertools.imap() was moved to builtin map()") < 0)
-		return NULL;
-
 	if (type == &imap_type && !_PyArg_NoKeywords("imap()", kwds))
 		return NULL;
 
@@ -2541,11 +2536,6 @@
 	PyObject *it;
 	ifilterobject *lz;
 
-	if (Py_Py3kWarningFlag &&
-	    PyErr_Warn(PyExc_DeprecationWarning,
-		       "In 3.x, itertools.ifilter() was moved to builtin filter().") < 0)
-		return NULL;
-
 	if (type == &ifilter_type && !_PyArg_NoKeywords("ifilter()", kwds))
 		return NULL;
 
@@ -2689,11 +2679,6 @@
 	PyObject *it;
 	ifilterfalseobject *lz;
 
-	if (Py_Py3kWarningFlag &&
-	    PyErr_Warn(PyExc_DeprecationWarning, 
-		       "In 3.x, ifilterfalse() was renamed to filterfalse().") < 0)
-		return NULL;
-
 	if (type == &ifilterfalse_type &&
 	    !_PyArg_NoKeywords("ifilterfalse()", kwds))
 		return NULL;
@@ -3000,11 +2985,6 @@
 	PyObject *result;
 	Py_ssize_t tuplesize = PySequence_Length(args);
 
-	if (Py_Py3kWarningFlag &&
-	    PyErr_Warn(PyExc_DeprecationWarning, 
-		       "In 3.x, itertools.izip() was moved to builtin zip()") < 0)
-		return NULL;
-
 	if (type == &izip_type && !_PyArg_NoKeywords("izip()", kwds))
 		return NULL;
 
@@ -3341,11 +3321,6 @@
 	PyObject *fillvalue = Py_None;
 	Py_ssize_t tuplesize = PySequence_Length(args);
 
-	if (Py_Py3kWarningFlag &&
-	    PyErr_Warn(PyExc_DeprecationWarning, 
-		       "In 3.x, izip_longest() was renamed to zip_longest().") < 0)
-		return NULL;
-
         if (kwds != NULL && PyDict_CheckExact(kwds) && PyDict_Size(kwds) > 0) {
                 fillvalue = PyDict_GetItemString(kwds, "fillvalue");
                 if (fillvalue == NULL  ||  PyDict_Size(kwds) > 1) {


More information about the Python-checkins mailing list