diff options
author | Facundo Batista <facundobatista@gmail.com> | 2008-02-25 23:46:02 (GMT) |
---|---|---|
committer | Facundo Batista <facundobatista@gmail.com> | 2008-02-25 23:46:02 (GMT) |
commit | b1d70e2252c108cb04254b2b1c6a1c0f75d7d19c (patch) | |
tree | 86b0c940bc0a745b2b4b60a3507c6ce02960a3f9 /Modules | |
parent | 39df66179f31a74fbbfb9fc8a4ef57ba1833c0b2 (diff) | |
download | cpython-b1d70e2252c108cb04254b2b1c6a1c0f75d7d19c.zip cpython-b1d70e2252c108cb04254b2b1c6a1c0f75d7d19c.tar.gz cpython-b1d70e2252c108cb04254b2b1c6a1c0f75d7d19c.tar.bz2 |
Coerced PyBool_Type to be able to compare it.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/itertoolsmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index e53c353..d95376a 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -2055,7 +2055,7 @@ ifilter_next(ifilterobject *lz) if (item == NULL) return NULL; - if (lz->func == Py_None || lz->func == PyBool_Type) { + if (lz->func == Py_None || lz->func == (PyObject *)&PyBool_Type) { ok = PyObject_IsTrue(item); } else { PyObject *good; @@ -2199,7 +2199,7 @@ ifilterfalse_next(ifilterfalseobject *lz) if (item == NULL) return NULL; - if (lz->func == Py_None || lz->func == PyBool_Type) { + if (lz->func == Py_None || lz->func == (PyObject *)&PyBool_Type) { ok = PyObject_IsTrue(item); } else { PyObject *good; |