Index: Objects/setobject.c =================================================================== --- Objects/setobject.c (revision 75079) +++ Objects/setobject.c (working copy) @@ -1405,10 +1405,7 @@ PyObject *key, *it, *tmp; if ((PyObject *)so == other) { - if (PySet_GET_SIZE(so) == 0) - Py_RETURN_TRUE; - else - Py_RETURN_FALSE; + Py_RETURN_BOOL(PySet_GET_SIZE(so) == 0); } if (PyAnySet_CheckExact(other)) { Index: Modules/selectmodule.c =================================================================== --- Modules/selectmodule.c (revision 75079) +++ Modules/selectmodule.c (working copy) @@ -818,10 +818,7 @@ static PyObject* pyepoll_get_closed(pyEpoll_Object *self) { - if (self->epfd < 0) - Py_RETURN_TRUE; - else - Py_RETURN_FALSE; + Py_RETURN_BOOL(self->epfd < 0); } static PyObject* @@ -1427,10 +1424,7 @@ static PyObject* kqueue_queue_get_closed(kqueue_queue_Object *self) { - if (self->kqfd < 0) - Py_RETURN_TRUE; - else - Py_RETURN_FALSE; + Py_RETURN_BOOL(self->kqfd < 0); } static PyObject*