diff options
author | Victor Stinner <vstinner@python.org> | 2023-05-04 14:21:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 14:21:01 (GMT) |
commit | 45398ad51220b63b8df08fb5551c6b736205daed (patch) | |
tree | 42d5b05c0706b871067d7390768493878d07eda9 /Python/pystate.c | |
parent | eba64d2afb4c429e80d863dc0dd7808bdbef30d3 (diff) | |
download | cpython-45398ad51220b63b8df08fb5551c6b736205daed.zip cpython-45398ad51220b63b8df08fb5551c6b736205daed.tar.gz cpython-45398ad51220b63b8df08fb5551c6b736205daed.tar.bz2 |
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/pystate.c')
-rw-r--r-- | Python/pystate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index f103a05..f09d376 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -1809,7 +1809,7 @@ int PyThreadState_SetAsyncExc(unsigned long id, PyObject *exc) { _PyRuntimeState *runtime = &_PyRuntime; - PyInterpreterState *interp = _PyRuntimeState_GetThreadState(runtime)->interp; + PyInterpreterState *interp = _PyInterpreterState_GET(); /* Although the GIL is held, a few C API functions can be called * without the GIL held, and in particular some that create and |