summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2023-10-12 14:52:14 (GMT)
committerGitHub <noreply@github.com>2023-10-12 14:52:14 (GMT)
commite7331365b488382d906ce6733ab1349ded49c928 (patch)
treebecf226032f4abe846e3a46e07f666cedb55cbc9 /Include/internal
parent8c6c14b91bf95e04018151c53bce6e27e0e22447 (diff)
downloadcpython-e7331365b488382d906ce6733ab1349ded49c928.zip
cpython-e7331365b488382d906ce6733ab1349ded49c928.tar.gz
cpython-e7331365b488382d906ce6733ab1349ded49c928.tar.bz2
gh-110721: Use the traceback module for PyErr_Display() and fallback to the C implementation (#110702)
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_traceback.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Include/internal/pycore_traceback.h b/Include/internal/pycore_traceback.h
index 01b3f5b..10922bf 100644
--- a/Include/internal/pycore_traceback.h
+++ b/Include/internal/pycore_traceback.h
@@ -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 *);