Lines Matching refs:offset2
4470 PyObject *offset1, *offset2;
4485 offset2 = time_utcoffset(other, NULL);
4486 if (offset2 == NULL)
4490 * offset2 == Py_None at this point.
4492 if ((offset1 == offset2) ||
4493 (PyDelta_Check(offset1) && PyDelta_Check(offset2) &&
4494 delta_cmp(offset1, offset2) == 0)) {
4501 else if (offset1 != Py_None && offset2 != Py_None) {
4503 assert(offset1 != offset2); /* else last "if" handled it */
4512 GET_TD_DAYS(offset2) * 86400 -
4513 GET_TD_SECONDS(offset2);
4535 Py_XDECREF(offset2);
5622 PyObject *offset1, *offset2, *offdiff = NULL;
5626 offset2 = offset1 = Py_None;
5628 Py_INCREF(offset2);
5634 offset2 = datetime_utcoffset(right, NULL);
5635 if (offset2 == NULL) {
5639 if ((offset1 != Py_None) != (offset2 != Py_None)) {
5644 Py_DECREF(offset2);
5648 if ((offset1 != offset2) &&
5649 delta_cmp(offset1, offset2) != 0) {
5650 offdiff = delta_subtract(offset1, offset2);
5653 Py_DECREF(offset2);
5658 Py_DECREF(offset2);
5891 PyObject *offset1, *offset2;
5921 offset2 = datetime_utcoffset(other, NULL);
5922 if (offset2 == NULL)
5926 * offset2 == Py_None at this point.
5928 if ((offset1 == offset2) ||
5929 (PyDelta_Check(offset1) && PyDelta_Check(offset2) &&
5930 delta_cmp(offset1, offset2) == 0)) {
5935 int ex = pep495_eq_exception(self, other, offset1, offset2);
5943 else if (offset1 != Py_None && offset2 != Py_None) {
5946 assert(offset1 != offset2); /* else last "if" handled it */
5957 int ex = pep495_eq_exception(self, other, offset1, offset2);
5980 Py_XDECREF(offset2);