Lines Matching refs:aware
674 time_alloc(PyTypeObject *type, Py_ssize_t aware)
676 size_t size = aware ? sizeof(PyDateTime_Time) : sizeof(_PyDateTime_BaseTime);
686 datetime_alloc(PyTypeObject *type, Py_ssize_t aware)
688 size_t size = aware ? sizeof(PyDateTime_DateTime) : sizeof(_PyDateTime_BaseDateTime);
992 char aware = tzinfo != Py_None;
1004 self = (PyDateTime_DateTime *) (type->tp_alloc(type, aware));
1006 self->hastzinfo = aware;
1012 if (aware) {
1073 char aware = tzinfo != Py_None;
1082 self = (PyDateTime_Time *) (type->tp_alloc(type, aware));
1084 self->hastzinfo = aware;
1090 if (aware) {
4209 char aware = (char)(tzinfo != Py_None);
4211 if (aware && check_tzinfo_subclass(tzinfo) < 0) {
4216 me = (PyDateTime_Time *) (type->tp_alloc(type, aware));
4222 me->hastzinfo = aware;
4223 if (aware) {
4488 /* If they're both naive, or both aware and have the same offsets,
4500 /* The hard case: both aware with different UTC offsets */
4531 "offset-aware times");
4886 char aware = (char)(tzinfo != Py_None);
4888 if (aware && check_tzinfo_subclass(tzinfo) < 0) {
4893 me = (PyDateTime_DateTime *) (type->tp_alloc(type , aware));
4899 me->hastzinfo = aware;
4900 if (aware) {
5642 "offset-aware datetimes");
5924 /* If they're both naive, or both aware and have the same offsets,
5976 "offset-aware datetimes");
6254 /* Make sure result is aware and UTC. */
6273 /* Result is already aware - just replace tzinfo. */