diff options
| author | Raymond Hettinger <python@rcn.com> | 2008-03-19 17:58:59 (GMT) | 
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2008-03-19 17:58:59 (GMT) | 
| commit | 10dca6e282924974261e7e0b25b13ee1be3ddc58 (patch) | |
| tree | c27a0272c2ad502356a4d60eec255b3b7f273537 /Python/bltinmodule.c | |
| parent | 05387861ea96dc7603519f00d95dcd7ad61b8919 (diff) | |
| download | cpython-10dca6e282924974261e7e0b25b13ee1be3ddc58.zip cpython-10dca6e282924974261e7e0b25b13ee1be3ddc58.tar.gz cpython-10dca6e282924974261e7e0b25b13ee1be3ddc58.tar.bz2  | |
The filter() function does support a None argument in Py3.0.
Diffstat (limited to 'Python/bltinmodule.c')
| -rw-r--r-- | Python/bltinmodule.c | 7 | 
1 files changed, 0 insertions, 7 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 0c3d6e2..3956bb5 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -296,13 +296,6 @@ builtin_filter(PyObject *self, PyObject *args)  		}  		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 {  | 
