mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-110721: Use the traceback module for PyErr_Display() and fallback to the C implementation (#110702)
This commit is contained in:
parent
8c6c14b91b
commit
e7331365b4
7 changed files with 146 additions and 837 deletions
|
@ -95,9 +95,8 @@ extern PyObject* _PyTraceBack_FromFrame(
|
|||
|
||||
/* Write the traceback tb to file f. Prefix each line with
|
||||
indent spaces followed by the margin (if it is not NULL). */
|
||||
extern int _PyTraceBack_Print_Indented(
|
||||
PyObject *tb, int indent, const char* margin,
|
||||
const char *header_margin, const char *header, PyObject *f);
|
||||
extern int _PyTraceBack_Print(
|
||||
PyObject *tb, const char *header, PyObject *f);
|
||||
extern int _Py_WriteIndentedMargin(int, const char*, PyObject *);
|
||||
extern int _Py_WriteIndent(int, PyObject *);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue