From: Guido van Rossum Date: Thu, 30 Mar 1995 11:01:44 +0000 (+0000) Subject: flush stdout before writing to stderr in print_error() X-Git-Tag: v1.2~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=527c2643d176bdc9308491d602a220cb8bfd0e8c;p=thirdparty%2FPython%2Fcpython.git flush stdout before writing to stderr in print_error() --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 734b72b0c448..2268c71ad483 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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) {