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

Skip to content

Commit 28c5adf

Browse files
authored
[3.13] gh-135839: Fix module_traverse and module_clear in _interpchannelsmodule (GH-135840) (#135919)
(cherry picked from commit dd59c78)
1 parent c344aad commit 28c5adf

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
@@ -3556,8 +3556,7 @@ module_traverse(PyObject *mod, visitproc visit, void *arg)
35563556
{
35573557
module_state *state = get_module_state(mod);
35583558
assert(state != NULL);
3559-
traverse_module_state(state, visit, arg);
3560-
return 0;
3559+
return traverse_module_state(state, visit, arg);
35613560
}
35623561

35633562
static int
@@ -3567,8 +3566,7 @@ module_clear(PyObject *mod)
35673566
assert(state != NULL);
35683567

35693568
// Now we clear the module state.
3570-
clear_module_state(state);
3571-
return 0;
3569+
return clear_module_state(state);
35723570
}
35733571

35743572
static void

0 commit comments

Comments
 (0)
0