Make sure the itertools filter functions give the same performance for func=bool as func=None.
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index ef15a39..e53c353 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -2055,7 +2055,7 @@
 		if (item == NULL)
 			return NULL;
 
-		if (lz->func == Py_None) {
+		if (lz->func == Py_None || lz->func == PyBool_Type) {
 			ok = PyObject_IsTrue(item);
 		} else {
 			PyObject *good;
@@ -2199,7 +2199,7 @@
 		if (item == NULL)
 			return NULL;
 
-		if (lz->func == Py_None) {
+		if (lz->func == Py_None || lz->func == PyBool_Type) {
 			ok = PyObject_IsTrue(item);
 		} else {
 			PyObject *good;