10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a53ed2e commit e0b8484Copy full SHA for e0b8484
Python/initconfig.c
@@ -1656,7 +1656,9 @@ config_read_env_vars(PyConfig *config)
1656
#ifdef Py_GIL_DISABLED
1657
if (strcmp(gil, "0") == 0) {
1658
config->enable_gil = _PyConfig_GIL_DISABLE;
1659
- } else if (strcmp(gil, "1") != 0) {
+ } else if (strcmp(gil, "1") == 0) {
1660
+ config->enable_gil = _PyConfig_GIL_ENABLE;
1661
+ } else {
1662
return _PyStatus_ERR("PYTHON_GIL must be \"0\" or \"1\"");
1663
}
1664
#else