diff options
author | luk1337 <priv.luk@gmail.com> | 2024-09-19 16:05:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 16:05:20 (GMT) |
commit | 7331d0f70bc9fbac177b76b6ec03486430383425 (patch) | |
tree | 3d2a3a6f00a059e154d7defe40a2ddd17d5aba7c /Python | |
parent | 8f82d9aa2191db7826bb7a453fe06ce65f966cf8 (diff) | |
download | cpython-7331d0f70bc9fbac177b76b6ec03486430383425.zip cpython-7331d0f70bc9fbac177b76b6ec03486430383425.tar.gz cpython-7331d0f70bc9fbac177b76b6ec03486430383425.tar.bz2 |
gh-124160: Pass main_tstate to update_global_state_for_extension() (#124164)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index a5ea0e2..26ad843 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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; |