diff options
author | Victor Stinner <vstinner@python.org> | 2021-02-19 13:33:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 13:33:31 +0100 |
commit | 101bf69ff18a946fed7c274f088878aaf85174cc (patch) | |
tree | 40aad6b5b086f5eae0135cd9f695365af3be5a2a /Python/import.c | |
parent | 62078101ea1be5d2fc472a3f0d9d135e0bd5cd38 (diff) | |
download | cpython-101bf69ff18a946fed7c274f088878aaf85174cc.tar.gz cpython-101bf69ff18a946fed7c274f088878aaf85174cc.zip |
bpo-43268: _Py_IsMainInterpreter() now expects interp (GH-24577)
The _Py_IsMainInterpreter() function now expects interp rather than
tstate.
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 75ac21df82d..6189dcfbe0e 100644 --- a/Python/import.c +++ b/Python/import.c @@ -441,7 +441,7 @@ _PyImport_FixupExtensionObject(PyObject *mod, PyObject *name, return -1; } - if (_Py_IsMainInterpreter(tstate)) { + if (_Py_IsMainInterpreter(tstate->interp)) { if (def->m_size == -1) { if (def->m_base.m_copy) { /* Somebody already imported the module, |