gh-124160: Pass main_tstate to update_global_state_for_extension() (#124164)

This commit is contained in:
luk1337 2024-09-19 18:05:20 +02:00 committed by GitHub
parent 8f82d9aa21
commit 7331d0f70b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 1 deletions

View file

@ -2045,7 +2045,7 @@ import_run_extension(PyThreadState *tstate, PyModInitFunction p0,
singlephase.m_init = p0;
}
cached = update_global_state_for_extension(
tstate, info->path, info->name, def, &singlephase);
main_tstate, info->path, info->name, def, &singlephase);
if (cached == NULL) {
assert(PyErr_Occurred());
goto main_finally;