diff options
author | Victor Stinner <vstinner@python.org> | 2023-05-04 16:21:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 16:21:01 +0200 |
commit | 45398ad51220b63b8df08fb5551c6b736205daed (patch) | |
tree | 42d5b05c0706b871067d7390768493878d07eda9 /Python/sysmodule.c | |
parent | eba64d2afb4c429e80d863dc0dd7808bdbef30d3 (diff) | |
download | cpython-45398ad51220b63b8df08fb5551c6b736205daed.tar.gz cpython-45398ad51220b63b8df08fb5551c6b736205daed.zip |
gh-103323: Remove PyRuntimeState_GetThreadState() (#104171)
This function no longer makes sense, since its runtime parameter is
no longer used. Use directly _PyThreadState_GET() and
_PyInterpreterState_GET() instead.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 781588b0df4..894a3e8a98f 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -365,7 +365,7 @@ PySys_AddAuditHook(Py_AuditHookFunction hook, void *userData) _PyRuntimeState *runtime = &_PyRuntime; PyThreadState *tstate; if (runtime->initialized) { - tstate = _PyRuntimeState_GetThreadState(runtime); + tstate = _PyThreadState_GET(); } else { tstate = NULL; |