From 0636f844a15c37366872119cf3baf492482cf3ce Mon Sep 17 00:00:00 2001 From: joncrall Date: Mon, 16 Oct 2023 11:12:07 -0400 Subject: [PATCH] Extern instead of noexcept --- line_profiler/_line_profiler.pyx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/line_profiler/_line_profiler.pyx b/line_profiler/_line_profiler.pyx index afb39b84..f11b6b57 100644 --- a/line_profiler/_line_profiler.pyx +++ b/line_profiler/_line_profiler.pyx @@ -402,9 +402,8 @@ cdef class LineProfiler: @cython.boundscheck(False) @cython.wraparound(False) -@cython.exceptval(check=False) -cdef int python_trace_callback(object self_, PyFrameObject *py_frame, int what, - PyObject *arg): +cdef extern int python_trace_callback(object self_, PyFrameObject *py_frame, + int what, PyObject *arg): """ The PyEval_SetTrace() callback.