File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -775,25 +775,25 @@ static struct PyModuleDef_Slot _locale_slots[] = {
775775};
776776
777777static int
778- locale_traverse (PyObject * m , visitproc visit , void * arg )
778+ locale_traverse (PyObject * module , visitproc visit , void * arg )
779779{
780- _locale_state * state = ( _locale_state * ) PyModule_GetState ( m );
780+ _locale_state * state = get_locale_state ( module );
781781 Py_VISIT (state -> Error );
782782 return 0 ;
783783}
784784
785785static int
786- locale_clear (PyObject * m )
786+ locale_clear (PyObject * module )
787787{
788- _locale_state * state = ( _locale_state * ) PyModule_GetState ( m );
788+ _locale_state * state = get_locale_state ( module );
789789 Py_CLEAR (state -> Error );
790790 return 0 ;
791791}
792792
793793static void
794- locale_free (PyObject * m )
794+ locale_free (PyObject * module )
795795{
796- locale_clear (m );
796+ locale_clear (module );
797797}
798798
799799static struct PyModuleDef _localemodule = {
Original file line number Diff line number Diff line change @@ -1925,15 +1925,15 @@ static PyMethodDef audioop_methods[] = {
19251925static int
19261926audioop_traverse (PyObject * module , visitproc visit , void * arg )
19271927{
1928- audioop_state * state = ( audioop_state * ) PyModule_GetState (module );
1928+ audioop_state * state = get_audioop_state (module );
19291929 Py_VISIT (state -> AudioopError );
19301930 return 0 ;
19311931}
19321932
19331933static int
19341934audioop_clear (PyObject * module )
19351935{
1936- audioop_state * state = ( audioop_state * ) PyModule_GetState (module );
1936+ audioop_state * state = get_audioop_state (module );
19371937 Py_CLEAR (state -> AudioopError );
19381938 return 0 ;
19391939}
You can’t perform that action at this time.
0 commit comments