Index: pythonrun.c =================================================================== RCS file: /projects/cvsroot/python/dist/src/Python/pythonrun.c,v retrieving revision 2.74 retrieving revision 2.75 diff -c -r2.74 -r2.75 *** old/Python/pythonrun.c 1998/02/06 22:27:24 2.74 --- Python/pythonrun.c 1998/02/28 04:31:39 2.75 *************** *** 676,682 **** return; if (PyErr_GivenExceptionMatches(exception, PyExc_SystemExit)) { ! err = Py_FlushLine(); fflush(stdout); if (v == NULL || v == Py_None) Py_Exit(0); --- 676,683 ---- return; if (PyErr_GivenExceptionMatches(exception, PyExc_SystemExit)) { ! if (Py_FlushLine()) ! PyErr_Clear(); fflush(stdout); if (v == NULL || v == Py_None) Py_Exit(0); *************** *** 714,723 **** if (f == NULL) fprintf(stderr, "lost sys.stderr\n"); else { ! err = Py_FlushLine(); fflush(stdout); ! if (err == 0) ! err = PyTraceBack_Print(tb, f); if (err == 0 && PyErr_GivenExceptionMatches(exception, PyExc_SyntaxError)) { --- 715,724 ---- if (f == NULL) fprintf(stderr, "lost sys.stderr\n"); else { ! if (Py_FlushLine()) ! PyErr_Clear(); fflush(stdout); ! err = PyTraceBack_Print(tb, f); if (err == 0 && PyErr_GivenExceptionMatches(exception, PyExc_SyntaxError)) { *************** *** 1062,1068 **** Py_DECREF(exitfunc); } ! Py_FlushLine(); } static void --- 1063,1070 ---- Py_DECREF(exitfunc); } ! if (Py_FlushLine()) ! PyErr_Clear(); } static void