Skip to content

Commit c4c57e5

Browse files
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 888d4cc) Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent ab8fed8 commit c4c57e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/traceback.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ dump_traceback(int fd, PyThreadState *tstate, int write_header)
801801
// not modify Python objects.
802802
frame = tstate->frame;
803803
if (frame == NULL) {
804-
PUTS(fd, "<no Python frame>\n");
804+
PUTS(fd, " <no Python frame>\n");
805805
return;
806806
}
807807

0 commit comments

Comments
 (0)