aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-03-19 17:58:59 +0000
committerRaymond Hettinger <python@rcn.com>2008-03-19 17:58:59 +0000
commit10dca6e282924974261e7e0b25b13ee1be3ddc58 (patch)
treec27a0272c2ad502356a4d60eec255b3b7f273537 /Modules/itertoolsmodule.c
parentIssue 2354: Fix-up compare warning. Patch contributed by Jeff Balogh. (diff)
downloadcpython-10dca6e282924974261e7e0b25b13ee1be3ddc58.tar.gz
cpython-10dca6e282924974261e7e0b25b13ee1be3ddc58.tar.bz2
cpython-10dca6e282924974261e7e0b25b13ee1be3ddc58.zip
The filter() function does support a None argument in Py3.0.
Diffstat (limited to 'Modules/itertoolsmodule.c')
-rw-r--r--Modules/itertoolsmodule.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index a369dc9f166..8e785bedf56 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -2552,15 +2552,6 @@ ifilter_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if (!PyArg_UnpackTuple(args, "ifilter", 2, 2, &func, &seq))
return NULL;
- if (func == Py_None) {
- if (Py_Py3kWarningFlag &&
- PyErr_Warn(PyExc_DeprecationWarning,
- "ifilter with None as a first argument "
- "is not supported in 3.x. Use a list "
- "comprehension instead.") < 0)
- return NULL;
- }
-
/* Get iterator. */
it = PyObject_GetIter(seq);
if (it == NULL)