diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2023-11-20 13:52:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 13:52:00 (GMT) |
commit | 3b3ec0d77f0f836cbe5ff1ab97efcc8b7ed5d787 (patch) | |
tree | f79786b7e97064b1a71840ac9c1421e87d6adc15 /Modules/_sysconfig.c | |
parent | 1c8f912ebdfdb146cd7dd2d7a3a67d2c5045ddb0 (diff) | |
download | cpython-3b3ec0d77f0f836cbe5ff1ab97efcc8b7ed5d787.zip cpython-3b3ec0d77f0f836cbe5ff1ab97efcc8b7ed5d787.tar.gz cpython-3b3ec0d77f0f836cbe5ff1ab97efcc8b7ed5d787.tar.bz2 |
gh-111863: Rename `Py_NOGIL` to `Py_GIL_DISABLED` (#111864)
Rename Py_NOGIL to Py_GIL_DISABLED
Diffstat (limited to 'Modules/_sysconfig.c')
-rw-r--r-- | Modules/_sysconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sysconfig.c b/Modules/_sysconfig.c index 6f1cc16..2918913 100644 --- a/Modules/_sysconfig.c +++ b/Modules/_sysconfig.c @@ -57,12 +57,12 @@ _sysconfig_config_vars_impl(PyObject *module) } #endif -#ifdef Py_NOGIL +#ifdef Py_GIL_DISABLED PyObject *py_nogil = _PyLong_GetOne(); #else PyObject *py_nogil = _PyLong_GetZero(); #endif - if (PyDict_SetItemString(config, "Py_NOGIL", py_nogil) < 0) { + if (PyDict_SetItemString(config, "Py_GIL_DISABLED", py_nogil) < 0) { Py_DECREF(config); return NULL; } |