Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Modules/_localemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,25 +775,25 @@ static struct PyModuleDef_Slot _locale_slots[] = {
};

static int
locale_traverse(PyObject *m, visitproc visit, void *arg)
locale_traverse(PyObject *module, visitproc visit, void *arg)
{
_locale_state *state = (_locale_state*)PyModule_GetState(m);
_locale_state *state = get_locale_state(module);
Py_VISIT(state->Error);
return 0;
}

static int
locale_clear(PyObject *m)
locale_clear(PyObject *module)
{
_locale_state *state = (_locale_state*)PyModule_GetState(m);
_locale_state *state = get_locale_state(module);
Py_CLEAR(state->Error);
return 0;
}

static void
locale_free(PyObject *m)
locale_free(PyObject *module)
{
locale_clear(m);
locale_clear(module);
}

static struct PyModuleDef _localemodule = {
Expand Down
4 changes: 2 additions & 2 deletions Modules/audioop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1925,15 +1925,15 @@ static PyMethodDef audioop_methods[] = {
static int
audioop_traverse(PyObject *module, visitproc visit, void *arg)
{
audioop_state *state = (audioop_state *)PyModule_GetState(module);
audioop_state *state = get_audioop_state(module);
Py_VISIT(state->AudioopError);
return 0;
}

static int
audioop_clear(PyObject *module)
{
audioop_state *state = (audioop_state *)PyModule_GetState(module);
audioop_state *state = get_audioop_state(module);
Py_CLEAR(state->AudioopError);
return 0;
}
Expand Down