diff options
Diffstat (limited to 'contrib/tools/python3/Python')
| -rw-r--r-- | contrib/tools/python3/Python/pystate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tools/python3/Python/pystate.c b/contrib/tools/python3/Python/pystate.c index 0ebbdfbfb41..7acf4f9854c 100644 --- a/contrib/tools/python3/Python/pystate.c +++ b/contrib/tools/python3/Python/pystate.c @@ -356,7 +356,7 @@ holds_gil(PyThreadState *tstate) assert(tstate != NULL); #ifndef NDEBUG if (!tstate_is_alive(tstate)) { - return 0; + return PyGILState_Check(); } #endif _PyRuntimeState *runtime = tstate->interp->runtime; |
