Lines Matching refs:offset2
4411 PyObject *offset1, *offset2; in time_richcompare() local
4426 offset2 = time_utcoffset(other, NULL); in time_richcompare()
4427 if (offset2 == NULL) in time_richcompare()
4433 if ((offset1 == offset2) || in time_richcompare()
4434 (PyDelta_Check(offset1) && PyDelta_Check(offset2) && in time_richcompare()
4435 delta_cmp(offset1, offset2) == 0)) { in time_richcompare()
4442 else if (offset1 != Py_None && offset2 != Py_None) { in time_richcompare()
4444 assert(offset1 != offset2); /* else last "if" handled it */ in time_richcompare()
4453 GET_TD_DAYS(offset2) * 86400 - in time_richcompare()
4454 GET_TD_SECONDS(offset2); in time_richcompare()
4476 Py_XDECREF(offset2); in time_richcompare()
5418 PyObject *offset1, *offset2, *offdiff = NULL; in datetime_subtract() local
5422 offset2 = offset1 = Py_None; in datetime_subtract()
5424 Py_INCREF(offset2); in datetime_subtract()
5430 offset2 = datetime_utcoffset(right, NULL); in datetime_subtract()
5431 if (offset2 == NULL) { in datetime_subtract()
5435 if ((offset1 != Py_None) != (offset2 != Py_None)) { in datetime_subtract()
5440 Py_DECREF(offset2); in datetime_subtract()
5444 if ((offset1 != offset2) && in datetime_subtract()
5445 delta_cmp(offset1, offset2) != 0) { in datetime_subtract()
5446 offdiff = delta_subtract(offset1, offset2); in datetime_subtract()
5449 Py_DECREF(offset2); in datetime_subtract()
5454 Py_DECREF(offset2); in datetime_subtract()
5687 PyObject *offset1, *offset2; in datetime_richcompare() local
5717 offset2 = datetime_utcoffset(other, NULL); in datetime_richcompare()
5718 if (offset2 == NULL) in datetime_richcompare()
5724 if ((offset1 == offset2) || in datetime_richcompare()
5725 (PyDelta_Check(offset1) && PyDelta_Check(offset2) && in datetime_richcompare()
5726 delta_cmp(offset1, offset2) == 0)) { in datetime_richcompare()
5731 int ex = pep495_eq_exception(self, other, offset1, offset2); in datetime_richcompare()
5739 else if (offset1 != Py_None && offset2 != Py_None) { in datetime_richcompare()
5742 assert(offset1 != offset2); /* else last "if" handled it */ in datetime_richcompare()
5753 int ex = pep495_eq_exception(self, other, offset1, offset2); in datetime_richcompare()
5776 Py_XDECREF(offset2); in datetime_richcompare()