8000 [3.14] gh-135839: Fix `module_traverse` and `module_clear` in `_inter… · python/cpython@93a31be · GitHub
[go: up one dir, main page]

Skip to content

Commit 93a31be

Browse files
[3.14] gh-13583 10000 9: Fix module_traverse and module_clear in _interpchannelsmodule (GH-135840) (#135918)
gh-135839: Fix `module_traverse` and `module_clear` in `_interpchannelsmodule` (GH-135840) (cherry picked from commit dd59c78) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent 349f4c2 commit 93a31be

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)
0