diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-01 13:34:01 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-01 13:34:01 (GMT) |
commit | fcb88c45030c5480ca184a2911bd3f9357b323d5 (patch) | |
tree | c59451f8d3b28e0803362ee42e85e500d1a2ef54 /Include | |
parent | a01ca12a524b608dfa9a3ac3131f4f5be96fa860 (diff) | |
download | cpython-fcb88c45030c5480ca184a2911bd3f9357b323d5.zip cpython-fcb88c45030c5480ca184a2911bd3f9357b323d5.tar.gz cpython-fcb88c45030c5480ca184a2911bd3f9357b323d5.tar.bz2 |
Issue #11393: _Py_DumpTraceback() writes the header even if there is no frame
Diffstat (limited to 'Include')
-rw-r--r-- | Include/traceback.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Include/traceback.h b/Include/traceback.h index 9a8f2a6..7734707 100644 --- a/Include/traceback.h +++ b/Include/traceback.h @@ -38,8 +38,6 @@ PyAPI_DATA(PyTypeObject) PyTraceBack_Type; ... File "xxx", line xxx in <xxx> - 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); |