Skip to content

Commit 5b08fae

Browse files
committed
gh-145559: Make PyUnstable_DumpTraceback void return
In gh-148145, we changed this to return a const char* but it is always NULL. I don't think this makes sense, so this puts it back.
1 parent 93beea7 commit 5b08fae

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Python/traceback.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,11 +1167,10 @@ dump_traceback(int fd, PyThreadState *tstate, int write_header)
11671167
11681168
The caller is responsible to call PyErr_CheckSignals() to call Python signal
11691169
handlers if signals were received. */
1170-
const char*
1170+
void
11711171
PyUnstable_DumpTraceback(int fd, PyThreadState *tstate)
11721172
{
11731173
dump_traceback(fd, tstate, 1);
1174-
return NULL;
11751174
}
11761175

11771176
#if defined(HAVE_PTHREAD_GETNAME_NP) || defined(HAVE_PTHREAD_GET_NAME_NP)

0 commit comments

Comments
 (0)