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>
This commit is contained in:
Victor Stinner 2021-08-31 17:34:29 +02:00 committed by GitHub
parent 3c65457156
commit 888d4cc06b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1071,7 +1071,7 @@ dump_traceback(int fd, PyThreadState *tstate, int write_header)
frame = tstate->frame;
if (frame == NULL) {
PUTS(fd, "<no Python frame>\n");
PUTS(fd, " <no Python frame>\n");
return;
}