Cython/8d177f4aa5.patch

23 lines
836 B
Diff
Raw Normal View History

2021-05-19 10:25:50 +00:00
From 8d177f4aa51a663e8c51de3210ccb329d7629d36 Mon Sep 17 00:00:00 2001
From: Stefan Behnel <stefan_ml@behnel.de>
Date: Sat, 15 May 2021 22:38:57 +0200
Subject: [PATCH] Fix another direct usage of "tstate->use_tracing" in Py3.10.
---
Cython/Utility/Profile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Cython/Utility/Profile.c b/Cython/Utility/Profile.c
index 3134aa0403..362cc93dda 100644
--- a/Cython/Utility/Profile.c
+++ b/Cython/Utility/Profile.c
@@ -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);