|
@@ -254,10 +254,11 @@ RData_richcmp(PyObject* self_p, PyObject* other_p, int op) {
|
|
"Unhandled rich comparison operator");
|
|
"Unhandled rich comparison operator");
|
|
return (NULL);
|
|
return (NULL);
|
|
}
|
|
}
|
|
- if (c)
|
|
|
|
|
|
+ if (c) {
|
|
Py_RETURN_TRUE;
|
|
Py_RETURN_TRUE;
|
|
- else
|
|
|
|
|
|
+ } else {
|
|
Py_RETURN_FALSE;
|
|
Py_RETURN_FALSE;
|
|
|
|
+ }
|
|
} catch (const std::exception& ex) {
|
|
} catch (const std::exception& ex) {
|
|
// FIXME: These exceptions are not tested, I don't know how or if
|
|
// FIXME: These exceptions are not tested, I don't know how or if
|
|
// at all they can be triggered. But they are caught just in the case.
|
|
// at all they can be triggered. But they are caught just in the case.
|