diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-09-23 23:16:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 23:16:41 (GMT) |
commit | 9bae6815a36073860f8c9334229e732adeb05a5a (patch) | |
tree | f28a90b826280bb6dc6751424b673b86ccf09799 /Python/import.c | |
parent | 848a21007b98d2f0efd8bbace46d9ed70173e53d (diff) | |
download | cpython-9bae6815a36073860f8c9334229e732adeb05a5a.zip cpython-9bae6815a36073860f8c9334229e732adeb05a5a.tar.gz cpython-9bae6815a36073860f8c9334229e732adeb05a5a.tar.bz2 |
[3.13] gh-124160: Pass main_tstate to update_global_state_for_extension() (GH-124164) (#124250)
gh-124160: Pass main_tstate to update_global_state_for_extension() (GH-124164)
(cherry picked from commit 7331d0f70bc9fbac177b76b6ec03486430383425)
Co-authored-by: luk1337 <priv.luk@gmail.com>
Diffstat (limited to 'Python/import.c')
-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 e0eb740..2ec5968 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2051,7 +2051,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; |