diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-03-19 17:11:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-19 17:11:33 (GMT) |
commit | 13397ee47d23fda2e8d4bef40c1df986457673d1 (patch) | |
tree | c5eb038c21c7d261a7c589eb03794f99f431f186 /Modules/audioop.c | |
parent | 5a3a71dddbe80edc75a3a74ce3b7978cf8635901 (diff) | |
download | cpython-13397ee47d23fda2e8d4bef40c1df986457673d1.zip cpython-13397ee47d23fda2e8d4bef40c1df986457673d1.tar.gz cpython-13397ee47d23fda2e8d4bef40c1df986457673d1.tar.bz2 |
bpo-39824: Convert PyModule_GetState() to get_module_state() (GH-19076)
Automerge-Triggered-By: @vstinner
Diffstat (limited to 'Modules/audioop.c')
-rw-r--r-- | Modules/audioop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/audioop.c b/Modules/audioop.c index 64cf981..3aeb6f0 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -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; } |