{
int diff = 42; /* nonsense */
- if (PyDelta_CheckExact(other)) {
+ if (PyDelta_Check(other)) {
diff = GET_TD_DAYS(self) - GET_TD_DAYS(other);
if (diff == 0) {
diff = GET_TD_SECONDS(self) - GET_TD_SECONDS(other);
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
- if (PyDate_CheckExact(left)) {
+ if (PyDate_Check(left)) {
/* date + ??? */
if (PyDelta_Check(right))
/* date + delta */
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
- if (PyDate_CheckExact(left)) {
- if (PyDate_CheckExact(right)) {
+ if (PyDate_Check(left)) {
+ if (PyDate_Check(right)) {
/* date - date */
int left_ord = ymd_to_ord(GET_YEAR(left),
GET_MONTH(left),