Skip to content

Commit 8daa8b5

Browse files
sobolevnAgent-Hellboy
authored andcommitted
pythongh-135839: Fix module_traverse and module_clear in _interpchannelsmodule (python#135840)
1 parent 57ea284 commit 8daa8b5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Modules/_interpchannelsmodule.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3614,8 +3614,7 @@ module_traverse(PyObject *mod, visitproc visit, void *arg)
36143614
{
36153615
module_state *state = get_module_state(mod);
36163616
assert(state != NULL);
3617-
(void)traverse_module_state(state, visit, arg);
3618-
return 0;
3617+
return traverse_module_state(state, visit, arg);
36193618
}
36203619

36213620
static int
@@ -3625,8 +3624,7 @@ module_clear(PyObject *mod)
36253624
assert(state != NULL);
36263625

36273626
// Now we clear the module state.
3628-
(void)clear_module_state(state);
3629-
return 0;
3627+
return clear_module_state(state);
36303628
}
36313629

36323630
static void

0 commit comments

Comments
 (0)