summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c2
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 {