https://github.com/python/cpython/commit/dd59c786cfb1018eb5abe877bfa7265ea9a3c2b9
commit: dd59c786cfb1018eb5abe877bfa7265ea9a3c2b9
branch: main
author: sobolevn <[email protected]>
committer: sobolevn <[email protected]>
date: 2025-06-25T11:54:42+03:00
summary:
gh-135839: Fix `module_traverse` and `module_clear` in `_interpchannelsmodule`
(#135840)
files:
M Modules/_interpchannelsmodule.c
diff --git a/Modules/_interpchannelsmodule.c b/Modules/_interpchannelsmodule.c
index ee5e2b005e0a5b..9c1f8615161275 100644
--- a/Modules/_interpchannelsmodule.c
+++ b/Modules/_interpchannelsmodule.c
@@ -3614,8 +3614,7 @@ module_traverse(PyObject *mod, visitproc visit, void *arg)
{
module_state *state = get_module_state(mod);
assert(state != NULL);
- (void)traverse_module_state(state, visit, arg);
- return 0;
+ return traverse_module_state(state, visit, arg);
}
static int
@@ -3625,8 +3624,7 @@ module_clear(PyObject *mod)
assert(state != NULL);
// Now we clear the module state.
- (void)clear_module_state(state);
- return 0;
+ return clear_module_state(state);
}
static void
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]