Skip to content

Commit 8c63261

Browse files
committed
[3.13] pythongh-135839: Fix module_traverse and module_clear in _interpchannelsmodule (pythonGH-135840)
(cherry picked from commit dd59c78) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent c344aad commit 8c63261

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

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)