mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-45061: Enhance faulthandler traceback wit no Python frame (GH-28090)
Fix indentation of <no Python frame> message in a faulthandler
traceback or a Fatal Python error traceback. Example:
Current thread 0x00007f03896fb740 (most recent call first):
Garbage-collecting
<no Python frame>
(cherry picked from commit 888d4cc06b
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
ab8fed88fc
commit
c4c57e5c0e
1 changed files with 1 additions and 1 deletions
|
@ -801,7 +801,7 @@ dump_traceback(int fd, PyThreadState *tstate, int write_header)
|
|||
// not modify Python objects.
|
||||
frame = tstate->frame;
|
||||
if (frame == NULL) {
|
||||
PUTS(fd, "<no Python frame>\n");
|
||||
PUTS(fd, " <no Python frame>\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue