From 101bf69ff18a946fed7c274f088878aaf85174cc Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 19 Feb 2021 13:33:31 +0100 Subject: bpo-43268: _Py_IsMainInterpreter() now expects interp (GH-24577) The _Py_IsMainInterpreter() function now expects interp rather than tstate. --- Python/pystate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pystate.c') diff --git a/Python/pystate.c b/Python/pystate.c index 922e5bee2cb..f4fd0398218 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -1327,7 +1327,7 @@ PyThreadState_IsCurrent(PyThreadState *tstate) PyStatus _PyGILState_Init(PyThreadState *tstate) { - if (!_Py_IsMainInterpreter(tstate)) { + if (!_Py_IsMainInterpreter(tstate->interp)) { /* Currently, PyGILState is shared by all interpreters. The main * interpreter is responsible to initialize it. */ return _PyStatus_OK(); -- cgit v1.2.3