mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-39824: Convert PyModule_GetState() to get_module_state() (GH-19076)
Automerge-Triggered-By: @vstinner
This commit is contained in:
parent
5a3a71dddb
commit
13397ee47d
2 changed files with 8 additions and 8 deletions
|
@ -1925,7 +1925,7 @@ 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;
|
||||
}
|
||||
|
@ -1933,7 +1933,7 @@ audioop_traverse(PyObject *module, visitproc visit, void *arg)
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue