Lines Matching refs:basestate
3495 PyObject *basestate; in time_getstate() local
3498 basestate = PyString_FromStringAndSize((char *)self->data, in time_getstate()
3500 if (basestate != NULL) { in time_getstate()
3502 result = PyTuple_Pack(1, basestate); in time_getstate()
3504 result = PyTuple_Pack(2, basestate, self->tzinfo); in time_getstate()
3505 Py_DECREF(basestate); in time_getstate()
4576 PyObject *basestate; in datetime_getstate() local
4579 basestate = PyString_FromStringAndSize((char *)self->data, in datetime_getstate()
4581 if (basestate != NULL) { in datetime_getstate()
4583 result = PyTuple_Pack(1, basestate); in datetime_getstate()
4585 result = PyTuple_Pack(2, basestate, self->tzinfo); in datetime_getstate()
4586 Py_DECREF(basestate); in datetime_getstate()