diff Python/bltinmodule.c @ 45928:e665a0b16da0 legacy-trunk

The filter() function does support a None argument in Py3.0.
author Raymond Hettinger <python@rcn.com>
date Wed, 19 Mar 2008 17:58:59 +0000
parents 727f743cf630
children 84bb7701efba
line wrap: on
line diff
--- a/Python/bltinmodule.c	Wed Mar 19 17:45:19 2008 +0000
+++ b/Python/bltinmodule.c	Wed Mar 19 17:58:59 2008 +0000
@@ -296,13 +296,6 @@
 		}
 
 		if (func == (PyObject *)&PyBool_Type || func == Py_None) {
-			if (Py_Py3kWarningFlag &&
-			    PyErr_Warn(PyExc_DeprecationWarning,
-				       "filter with None as a first argument "
-				       "is not supported in 3.x.  Use a list "
-				       "comprehension instead.") < 0)
-				return NULL;
-
 			ok = PyObject_IsTrue(item);
 		}
 		else {