summaryrefslogtreecommitdiffstats
path: root/Python
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 /Python
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 'Python')
-rw-r--r--Python/bltinmodule.c2
-rw-r--r--Python/sysmodule.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 88d858d..e7b60eb 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -3125,7 +3125,7 @@ _PyBuiltin_Init(PyInterpreterState *interp)
if (mod == NULL)
return NULL;
#ifdef Py_GIL_DISABLED
- PyModule_ExperimentalSetGIL(mod, Py_MOD_GIL_NOT_USED);
+ PyUnstable_Module_SetGIL(mod, Py_MOD_GIL_NOT_USED);
#endif
dict = PyModule_GetDict(mod);
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 69bee32..417040c 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -3775,7 +3775,7 @@ _PySys_Create(PyThreadState *tstate, PyObject **sysmod_p)
return _PyStatus_ERR("failed to create a module object");
}
#ifdef Py_GIL_DISABLED
- PyModule_ExperimentalSetGIL(sysmod, Py_MOD_GIL_NOT_USED);
+ PyUnstable_Module_SetGIL(sysmod, Py_MOD_GIL_NOT_USED);
#endif
PyObject *sysdict = PyModule_GetDict(sysmod);