Skip to content

Commit

Permalink
buildsys: Deactivate _PyTraceback_Add import.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Oct 11, 2024
1 parent ac2dbbd commit ce1f7f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openage/cppinterface/exctranslate.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ from ..log import info
cdef extern from "Python.h":
int PyException_SetTraceback(PyObject *ex, PyObject *tb)

cdef extern from "traceback.h":
void _PyTraceback_Add(const char *funcname, const char *filename, int lineno)
# cdef extern from "traceback.h":
# void _PyTraceback_Add(const char *funcname, const char *filename, int lineno)


cdef void PyTraceback_Add(const char *functionname, const char *filename, int lineno) noexcept with gil:
Expand All @@ -47,7 +47,7 @@ cdef void PyTraceback_Add(const char *functionname, const char *filename, int li
# possible since 3.4.3 due to http://bugs.python.org/issue24436.
# the function will likely remain internal due to https://bugs.python.org/issue24743

_PyTraceback_Add(functionname, filename, lineno)
# _PyTraceback_Add(functionname, filename, lineno)


cdef class CPPMessageObject:
Expand Down

0 comments on commit ce1f7f8

Please sign in to comment.