Skip to content

Commit

Permalink
pythongh-103092: Make _elementtree module importable in sub-interpr…
Browse files Browse the repository at this point in the history
…eters (python#113434)

Enable imports of _elementtree module in sub-interpreters
  • Loading branch information
Eclips4 authored and Glyphack committed Jan 27, 2024
1 parent d5b422b commit 89867ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Modules/_elementtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -4430,9 +4430,7 @@ module_exec(PyObject *m)

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},
};

Expand Down

0 comments on commit 89867ca

Please sign in to comment.