From fcb88c45030c5480ca184a2911bd3f9357b323d5 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 1 Apr 2011 15:34:01 +0200 Subject: Issue #11393: _Py_DumpTraceback() writes the header even if there is no frame --- Include/traceback.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Include/traceback.h') diff --git a/Include/traceback.h b/Include/traceback.h index 9a8f2a63adb..77347077e91 100644 --- a/Include/traceback.h +++ b/Include/traceback.h @@ -38,8 +38,6 @@ PyAPI_DATA(PyTypeObject) PyTraceBack_Type; ... File "xxx", line xxx in - Return 0 on success, -1 on error. - This function is written for debug purpose only, to dump the traceback in the worst case: after a segmentation fault, at fatal error, etc. That's why, it is very limited. Strings are truncated to 100 characters and encoded to @@ -49,7 +47,7 @@ PyAPI_DATA(PyTypeObject) PyTraceBack_Type; This function is signal safe. */ -PyAPI_DATA(int) _Py_DumpTraceback( +PyAPI_DATA(void) _Py_DumpTraceback( int fd, PyThreadState *tstate); -- cgit v1.2.3-65-gdbad