gh-103092: Make `_elementtree` module importable in sub-interpreters (#113434)

Enable imports of _elementtree module in sub-interpreters
This commit is contained in:
Kirill Podoprigora 2023-12-28 12:12:21 +03:00 committed by GitHub
parent cc13eabc7c
commit f1676867b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -4430,9 +4430,7 @@ error:
static struct PyModuleDef_Slot elementtree_slots[] = {
{Py_mod_exec, module_exec},
// XXX gh-103092: fix isolation.
{Py_mod_multiple_interpreters, Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED},
//{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
{0, NULL},
};