mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
[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 7331d0f70b
)
Co-authored-by: luk1337 <priv.luk@gmail.com>
This commit is contained in:
parent
848a21007b
commit
9bae6815a3
3 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue