Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 2617:ed30bca184bb legacy-trunk
flush stdout before writing to stderr in print_error()
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 30 Mar 1995 11:01:44 +0000 |
| parents | ca6b60d4ea90 |
| children | 0261bf5b3819 |
line wrap: on
line diff
--- a/Python/pythonrun.c Thu Mar 30 11:00:56 1995 +0000 +++ b/Python/pythonrun.c Thu Mar 30 11:01:44 1995 +0000 @@ -286,6 +286,7 @@ 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) {
