@@ -946,7 +946,7 @@ static PyObject *
946946call_tzname (PyObject * tzinfo , PyObject * tzinfoarg )
947947{
948948 PyObject * result ;
949- _Py_identifier (tzname );
949+ _Py_IDENTIFIER (tzname );
950950
951951 assert (tzinfo != NULL );
952952 assert (check_tzinfo_subclass (tzinfo ) >= 0 );
@@ -1079,7 +1079,7 @@ make_Zreplacement(PyObject *object, PyObject *tzinfoarg)
10791079 PyObject * temp ;
10801080 PyObject * tzinfo = get_tzinfo_member (object );
10811081 PyObject * Zreplacement = PyUnicode_FromStringAndSize (NULL , 0 );
1082- _Py_identifier (replace );
1082+ _Py_IDENTIFIER (replace );
10831083
10841084 if (Zreplacement == NULL )
10851085 return NULL ;
@@ -1289,7 +1289,7 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
12891289 goto Done ;
12901290 format = PyUnicode_FromString (PyBytes_AS_STRING (newfmt ));
12911291 if (format != NULL ) {
1292- _Py_identifier (strftime );
1292+ _Py_IDENTIFIER (strftime );
12931293
12941294 result = _PyObject_CallMethodId (time , & PyId_strftime , "OO" ,
12951295 format , timetuple , NULL );
@@ -1318,7 +1318,7 @@ time_time(void)
13181318 PyObject * time = PyImport_ImportModuleNoBlock ("time" );
13191319
13201320 if (time != NULL ) {
1321- _Py_identifier (time );
1321+ _Py_IDENTIFIER (time );
13221322
13231323 result = _PyObject_CallMethodId (time , & PyId_time , "()" );
13241324 Py_DECREF (time );
@@ -1337,7 +1337,7 @@ build_struct_time(int y, int m, int d, int hh, int mm, int ss, int dstflag)
13371337
13381338 time = PyImport_ImportModuleNoBlock ("time" );
13391339 if (time != NULL ) {
1340- _Py_identifier (struct_time );
1340+ _Py_IDENTIFIER (struct_time );
13411341
13421342 result = _PyObject_CallMethodId (time , & PyId_struct_time ,
13431343 "((iiiiiiiii))" ,
@@ -1578,7 +1578,7 @@ multiply_float_timedelta(PyObject *floatobj, PyDateTime_Delta *delta)
15781578 PyObject * result = NULL ;
15791579 PyObject * pyus_in = NULL , * temp , * pyus_out ;
15801580 PyObject * ratio = NULL ;
1581- _Py_identifier (as_integer_ratio );
1581+ _Py_IDENTIFIER (as_integer_ratio );
15821582
15831583 pyus_in = delta_to_microseconds (delta );
15841584 if (pyus_in == NULL )
@@ -1677,7 +1677,7 @@ truedivide_timedelta_float(PyDateTime_Delta *delta, PyObject *f)
16771677 PyObject * result = NULL ;
16781678 PyObject * pyus_in = NULL , * temp , * pyus_out ;
16791679 PyObject * ratio = NULL ;
1680- _Py_identifier (as_integer_ratio );
1680+ _Py_IDENTIFIER (as_integer_ratio );
16811681
16821682 pyus_in = delta_to_microseconds (delta );
16831683 if (pyus_in == NULL )
@@ -2473,7 +2473,7 @@ date_today(PyObject *cls, PyObject *dummy)
24732473{
24742474 PyObject * time ;
24752475 PyObject * result ;
2476- _Py_identifier (fromtimestamp );
2476+ _Py_IDENTIFIER (fromtimestamp );
24772477
24782478 time = time_time ();
24792479 if (time == NULL )
@@ -2626,7 +2626,7 @@ date_isoformat(PyDateTime_Date *self)
26262626static PyObject *
26272627date_str (PyDateTime_Date * self )
26282628{
2629- _Py_identifier (isoformat );
2629+ _Py_IDENTIFIER (isoformat );
26302630
26312631 return _PyObject_CallMethodId ((PyObject * )self , & PyId_isoformat , "()" );
26322632}
@@ -2647,7 +2647,7 @@ date_strftime(PyDateTime_Date *self, PyObject *args, PyObject *kw)
26472647 PyObject * result ;
26482648 PyObject * tuple ;
26492649 PyObject * format ;
2650- _Py_identifier (timetuple );
2650+ _Py_IDENTIFIER (timetuple );
26512651 static char * keywords [] = {"format" , NULL };
26522652
26532653 if (! PyArg_ParseTupleAndKeywords (args , kw , "U:strftime" , keywords ,
@@ -2667,7 +2667,7 @@ static PyObject *
26672667date_format (PyDateTime_Date * self , PyObject * args )
26682668{
26692669 PyObject * format ;
2670- _Py_identifier (strftime );
2670+ _Py_IDENTIFIER (strftime );
26712671
26722672 if (!PyArg_ParseTuple (args , "U:__format__" , & format ))
26732673 return NULL ;
@@ -3077,8 +3077,8 @@ tzinfo_reduce(PyObject *self)
30773077{
30783078 PyObject * args , * state , * tmp ;
30793079 PyObject * getinitargs , * getstate ;
3080- _Py_identifier (__getinitargs__ );
3081- _Py_identifier (__getstate__ );
3080+ _Py_IDENTIFIER (__getinitargs__ );
3081+ _Py_IDENTIFIER (__getstate__ );
30823082
30833083 tmp = PyTuple_New (0 );
30843084 if (tmp == NULL )
@@ -3592,7 +3592,7 @@ time_repr(PyDateTime_Time *self)
35923592static PyObject *
35933593time_str (PyDateTime_Time * self )
35943594{
3595- _Py_identifier (isoformat );
3595+ _Py_IDENTIFIER (isoformat );
35963596
35973597 return _PyObject_CallMethodId ((PyObject * )self , & PyId_isoformat , "()" );
35983598}
@@ -4173,7 +4173,7 @@ datetime_now(PyObject *cls, PyObject *args, PyObject *kw)
41734173 if (self != NULL && tzinfo != Py_None ) {
41744174 /* Convert UTC to tzinfo's zone. */
41754175 PyObject * temp = self ;
4176- _Py_identifier (fromutc );
4176+ _Py_IDENTIFIER (fromutc );
41774177
41784178 self = _PyObject_CallMethodId (tzinfo , & PyId_fromutc , "O" , self );
41794179 Py_DECREF (temp );
@@ -4212,7 +4212,7 @@ datetime_fromtimestamp(PyObject *cls, PyObject *args, PyObject *kw)
42124212 if (self != NULL && tzinfo != Py_None ) {
42134213 /* Convert UTC to tzinfo's zone. */
42144214 PyObject * temp = self ;
4215- _Py_identifier (fromutc );
4215+ _Py_IDENTIFIER (fromutc );
42164216
42174217 self = _PyObject_CallMethodId (tzinfo , & PyId_fromutc , "O" , self );
42184218 Py_DECREF (temp );
@@ -4239,7 +4239,7 @@ datetime_strptime(PyObject *cls, PyObject *args)
42394239{
42404240 static PyObject * module = NULL ;
42414241 PyObject * string , * format ;
4242- _Py_identifier (_strptime_datetime );
4242+ _Py_IDENTIFIER (_strptime_datetime );
42434243
42444244 if (!PyArg_ParseTuple (args , "UU:strptime" , & string , & format ))
42454245 return NULL ;
@@ -4495,7 +4495,7 @@ datetime_repr(PyDateTime_DateTime *self)
44954495static PyObject *
44964496datetime_str (PyDateTime_DateTime * self )
44974497{
4498- _Py_identifier (isoformat );
4498+ _Py_IDENTIFIER (isoformat );
44994499
45004500 return _PyObject_CallMethodId ((PyObject * )self , & PyId_isoformat , "(s)" , " " );
45014501}
@@ -4704,7 +4704,7 @@ datetime_astimezone(PyDateTime_DateTime *self, PyObject *args, PyObject *kw)
47044704 PyObject * offset ;
47054705 PyObject * temp ;
47064706 PyObject * tzinfo ;
4707- _Py_identifier (fromutc );
4707+ _Py_IDENTIFIER (fromutc );
47084708 static char * keywords [] = {"tz" , NULL };
47094709
47104710 if (! PyArg_ParseTupleAndKeywords (args , kw , "O!:astimezone" , keywords ,
0 commit comments