diff options
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index fb92478..9f41efc 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -197,7 +197,7 @@ builtin_filter(PyObject *self, PyObject *args) break; } - if (func == Py_None) { + if (func == (PyObject *)&PyBool_Type || func == Py_None) { ok = PyObject_IsTrue(item); } else { |