Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 2616:a92dded4a7c4 | 2617:ed30bca184bb |
|---|---|
| 284 print_error() | 284 print_error() |
| 285 { | 285 { |
| 286 object *exception, *v, *tb, *f; | 286 object *exception, *v, *tb, *f; |
| 287 err_fetch(&exception, &v, &tb); | 287 err_fetch(&exception, &v, &tb); |
| 288 flushline(); | 288 flushline(); |
| 289 fflush(stdout); | |
| 289 if (exception == NULL) | 290 if (exception == NULL) |
| 290 fatal("print_error called but no exception"); | 291 fatal("print_error called but no exception"); |
| 291 if (exception == SystemExit) { | 292 if (exception == SystemExit) { |
| 292 if (v == NULL || v == None) | 293 if (v == NULL || v == None) |
| 293 goaway(0); | 294 goaway(0); |
