mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-135839: Fix module_traverse
and module_clear
in _interpchannelsmodule
(#135840)
This commit is contained in:
parent
ca87a47b3d
commit
dd59c786cf
1 changed files with 2 additions and 4 deletions
|
@ -3614,8 +3614,7 @@ module_traverse(PyObject *mod, visitproc visit, void *arg)
|
||||||
{
|
{
|
||||||
module_state *state = get_module_state(mod);
|
module_state *state = get_module_state(mod);
|
||||||
assert(state != NULL);
|
assert(state != NULL);
|
||||||
(void)traverse_module_state(state, visit, arg);
|
return traverse_module_state(state, visit, arg);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -3625,8 +3624,7 @@ module_clear(PyObject *mod)
|
||||||
assert(state != NULL);
|
assert(state != NULL);
|
||||||
|
|
||||||
// Now we clear the module state.
|
// Now we clear the module state.
|
||||||
(void)clear_module_state(state);
|
return clear_module_state(state);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue