Commit 8d177f4a authored by Stefan Behnel's avatar Stefan Behnel

Fix another direct usage of "tstate->use_tracing" in Py3.10.

parent fa5d2f5b
......@@ -298,7 +298,7 @@ static int __Pyx_TraceSetupAndCall(PyCodeObject** code,
tstate->tracing--;
if (retval) {
__Pyx_ErrRestoreInState(tstate, type, value, traceback);
return tstate->use_tracing && retval;
return __Pyx_IsTracing(tstate, 0, 0) && retval;
} else {
Py_XDECREF(type);
Py_XDECREF(value);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment