summaryrefslogtreecommitdiffstats
path: root/Modules/_testsinglephase.c
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2024-05-06 16:59:36 (GMT)
committerGitHub <noreply@github.com>2024-05-06 16:59:36 (GMT)
commit417dd3aca7bb910691d34e54fee108d7bbc627d3 (patch)
treebf7abb2482714929fc26276e231911862f687d1f /Modules/_testsinglephase.c
parent3ed3bc379a0c4ce7a107dd4bc276554fbb477998 (diff)
downloadcpython-417dd3aca7bb910691d34e54fee108d7bbc627d3.zip
cpython-417dd3aca7bb910691d34e54fee108d7bbc627d3.tar.gz
cpython-417dd3aca7bb910691d34e54fee108d7bbc627d3.tar.bz2
gh-116322: Rename PyModule_ExperimentalSetGIL to PyUnstable_Module_SetGIL (GH-118645)
Diffstat (limited to 'Modules/_testsinglephase.c')
-rw-r--r--Modules/_testsinglephase.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_testsinglephase.c b/Modules/_testsinglephase.c
index c0eb266..448be50 100644
--- a/Modules/_testsinglephase.c
+++ b/Modules/_testsinglephase.c
@@ -472,7 +472,7 @@ init__testsinglephase_basic(PyModuleDef *def)
return NULL;
}
#ifdef Py_GIL_DISABLED
- PyModule_ExperimentalSetGIL(module, Py_MOD_GIL_NOT_USED);
+ PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED);
#endif
module_state *state = &global_state.module;
@@ -566,7 +566,7 @@ PyInit__testsinglephase_with_reinit(void)
return NULL;
}
#ifdef Py_GIL_DISABLED
- PyModule_ExperimentalSetGIL(module, Py_MOD_GIL_NOT_USED);
+ PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED);
#endif
assert(get_module_state(module) == NULL);
@@ -631,7 +631,7 @@ PyInit__testsinglephase_with_state(void)
return NULL;
}
#ifdef Py_GIL_DISABLED
- PyModule_ExperimentalSetGIL(module, Py_MOD_GIL_NOT_USED);
+ PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED);
#endif
module_state *state = get_module_state(module);