summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-30 11:01:44 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-30 11:01:44 (GMT)
commit527c2643d176bdc9308491d602a220cb8bfd0e8c (patch)
treeb42cbbb16fba8da2107fdd645e0f68c57543bbb4 /Python
parent74ee2878b6f9f908c9657b61079687c9526b159b (diff)
downloadcpython-527c2643d176bdc9308491d602a220cb8bfd0e8c.zip
cpython-527c2643d176bdc9308491d602a220cb8bfd0e8c.tar.gz
cpython-527c2643d176bdc9308491d602a220cb8bfd0e8c.tar.bz2
flush stdout before writing to stderr in print_error()
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonrun.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 734b72b..2268c71 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) {