• Home
  • Raw
  • Download

Lines Matching refs:offset1

4411     PyObject *offset1, *offset2;  in time_richcompare()  local
4423 offset1 = time_utcoffset(self, NULL); in time_richcompare()
4424 if (offset1 == 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()
4448 GET_TD_DAYS(offset1) * 86400 - in time_richcompare()
4449 GET_TD_SECONDS(offset1); in time_richcompare()
4475 Py_DECREF(offset1); in time_richcompare()
5418 PyObject *offset1, *offset2, *offdiff = NULL; in datetime_subtract() local
5422 offset2 = offset1 = Py_None; in datetime_subtract()
5423 Py_INCREF(offset1); in datetime_subtract()
5427 offset1 = datetime_utcoffset(left, NULL); in datetime_subtract()
5428 if (offset1 == NULL) in datetime_subtract()
5432 Py_DECREF(offset1); in datetime_subtract()
5435 if ((offset1 != Py_None) != (offset2 != Py_None)) { in datetime_subtract()
5439 Py_DECREF(offset1); 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()
5448 Py_DECREF(offset1); in datetime_subtract()
5453 Py_DECREF(offset1); in datetime_subtract()
5687 PyObject *offset1, *offset2; in datetime_richcompare() local
5714 offset1 = datetime_utcoffset(self, NULL); in datetime_richcompare()
5715 if (offset1 == 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()
5775 Py_DECREF(offset1); in datetime_richcompare()