Lines Matching refs:basestate
4402 PyObject *basestate; in time_getstate() local
4405 basestate = PyBytes_FromStringAndSize((char *)self->data, in time_getstate()
4407 if (basestate != NULL) { in time_getstate()
4410 PyBytes_AS_STRING(basestate)[0] |= (1 << 7); in time_getstate() local
4412 result = PyTuple_Pack(1, basestate); in time_getstate()
4414 result = PyTuple_Pack(2, basestate, self->tzinfo); in time_getstate()
4415 Py_DECREF(basestate); in time_getstate()
6054 PyObject *basestate; in datetime_getstate() local
6057 basestate = PyBytes_FromStringAndSize((char *)self->data, in datetime_getstate()
6059 if (basestate != NULL) { in datetime_getstate()
6062 PyBytes_AS_STRING(basestate)[2] |= (1 << 7); in datetime_getstate() local
6064 result = PyTuple_Pack(1, basestate); in datetime_getstate()
6066 result = PyTuple_Pack(2, basestate, self->tzinfo); in datetime_getstate()
6067 Py_DECREF(basestate); in datetime_getstate()