Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c801ab

Browse files
committed
t_bootstram(): Use PySys_WriteStderr() instead of fprintf(stderr,...).
This closes bug #117324.
1 parent ff88e46 commit 9c801ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/threadmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ t_bootstrap(void *boot_raw)
197197
if (PyErr_ExceptionMatches(PyExc_SystemExit))
198198
PyErr_Clear();
199199
else {
200-
fprintf(stderr, "Unhandled exception in thread:\n");
200+
PySys_WriteStderr("Unhandled exception in thread:\n");
201201
PyErr_PrintEx(0);
202202
}
203203
}

0 commit comments

Comments
 (0)