Lines Matching refs:basestate
3499 PyObject *basestate; in time_getstate() local
3502 basestate = PyString_FromStringAndSize((char *)self->data, in time_getstate()
3504 if (basestate != NULL) { in time_getstate()
3506 result = PyTuple_Pack(1, basestate); in time_getstate()
3508 result = PyTuple_Pack(2, basestate, self->tzinfo); in time_getstate()
3509 Py_DECREF(basestate); in time_getstate()
4579 PyObject *basestate; in datetime_getstate() local
4582 basestate = PyString_FromStringAndSize((char *)self->data, in datetime_getstate()
4584 if (basestate != NULL) { in datetime_getstate()
4586 result = PyTuple_Pack(1, basestate); in datetime_getstate()
4588 result = PyTuple_Pack(2, basestate, self->tzinfo); in datetime_getstate()
4589 Py_DECREF(basestate); in datetime_getstate()