summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-02 16:37:37 (GMT)
committerGitHub <noreply@github.com>2023-07-02 16:37:37 (GMT)
commitbc7eb1708452da59c22782c487ae7f05f1788970 (patch)
tree9bed06f1ec6084183251579badf9d32ad332d866 /Modules/_io
parent9a51a419619bb9dd1075d683708c57803c5d48c7 (diff)
downloadcpython-bc7eb1708452da59c22782c487ae7f05f1788970.zip
cpython-bc7eb1708452da59c22782c487ae7f05f1788970.tar.gz
cpython-bc7eb1708452da59c22782c487ae7f05f1788970.tar.bz2
gh-106320: Use _PyInterpreterState_GET() (#106336)
Replace PyInterpreterState_Get() with inlined _PyInterpreterState_GET().
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/bufferedio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/bufferedio.c b/Modules/_io/bufferedio.c
index 25376f8..9c6a9cd 100644
--- a/Modules/_io/bufferedio.c
+++ b/Modules/_io/bufferedio.c
@@ -292,7 +292,7 @@ _enter_buffered_busy(buffered *self)
"reentrant call inside %R", self);
return 0;
}
- PyInterpreterState *interp = PyInterpreterState_Get();
+ PyInterpreterState *interp = _PyInterpreterState_GET();
relax_locking = _Py_IsInterpreterFinalizing(interp);
Py_BEGIN_ALLOW_THREADS
if (!relax_locking)