diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-02 01:44:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-01 23:44:07 +0000 |
commit | 18b1fdebe0cd5e601aa341227c13ec9d89bdf32c (patch) | |
tree | 701bc6f8ffcafff8eddc462192276a4d483f1a7b /Python/import.c | |
parent | 0530f4f64629ff97f3feb7524da0833b9535e8b6 (diff) | |
download | cpython-18b1fdebe0cd5e601aa341227c13ec9d89bdf32c.tar.gz cpython-18b1fdebe0cd5e601aa341227c13ec9d89bdf32c.zip |
gh-106320: Remove _PyInterpreterState_Get() alias (#106321)
Replace calls to the (removed) slow _PyInterpreterState_Get() with
fast inlined _PyInterpreterState_GET() function.
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 324fe3812bd..fcc0346e7f1 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1123,7 +1123,7 @@ check_multi_interp_extensions(PyInterpreterState *interp) int _PyImport_CheckSubinterpIncompatibleExtensionAllowed(const char *name) { - PyInterpreterState *interp = _PyInterpreterState_Get(); + PyInterpreterState *interp = _PyInterpreterState_GET(); if (check_multi_interp_extensions(interp)) { assert(!_Py_IsMainInterpreter(interp)); PyErr_Format(PyExc_ImportError, |