mirror of
https://github.com/python/cpython.git
synced 2026-06-21 02:22:23 -04:00
flush stdout before writing to stderr in print_error()
This commit is contained in:
@@ -286,6 +286,7 @@ print_error()
|
||||
object *exception, *v, *tb, *f;
|
||||
err_fetch(&exception, &v, &tb);
|
||||
flushline();
|
||||
fflush(stdout);
|
||||
if (exception == NULL)
|
||||
fatal("print_error called but no exception");
|
||||
if (exception == SystemExit) {
|
||||
|
||||
Reference in New Issue
Block a user