Lines Matching refs:basestate
4628 PyObject *basestate; in time_getstate() local
4631 basestate = PyBytes_FromStringAndSize((char *)self->data, in time_getstate()
4633 if (basestate != NULL) { in time_getstate()
4636 PyBytes_AS_STRING(basestate)[0] |= (1 << 7); in time_getstate() local
4638 result = PyTuple_Pack(1, basestate); in time_getstate()
4640 result = PyTuple_Pack(2, basestate, self->tzinfo); in time_getstate()
4641 Py_DECREF(basestate); in time_getstate()
6284 PyObject *basestate; in datetime_getstate() local
6287 basestate = PyBytes_FromStringAndSize((char *)self->data, in datetime_getstate()
6289 if (basestate != NULL) { in datetime_getstate()
6292 PyBytes_AS_STRING(basestate)[2] |= (1 << 7); in datetime_getstate() local
6294 result = PyTuple_Pack(1, basestate); in datetime_getstate()
6296 result = PyTuple_Pack(2, basestate, self->tzinfo); in datetime_getstate()
6297 Py_DECREF(basestate); in datetime_getstate()