mirror of https://github.com/python/cpython
flush stdout before writing to stderr in print_error()
This commit is contained in:
parent
74ee2878b6
commit
527c2643d1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue