Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 2062:d0d0a69b5ca3 legacy-trunk
Added 1995 to copyright message.
bltinmodule.c: fixed coerce() nightmare in ternary pow().
modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject().
pythonrun.c: move flushline() into and around print_error().
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 04 Jan 1995 19:12:13 +0000 |
| parents | d7e91437f0a2 |
| children | b7be0382f9ee |
line wrap: on
line diff
--- a/Python/pythonrun.c Wed Jan 04 19:10:35 1995 +0000 +++ b/Python/pythonrun.c Wed Jan 04 19:12:13 1995 +0000 @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved @@ -178,12 +178,12 @@ return -1; d = getmoduledict(m); v = run_node(n, filename, d, d); - flushline(); if (v == NULL) { print_error(); return -1; } DECREF(v); + flushline(); return 0; } @@ -211,12 +211,12 @@ } else { v = run_file(fp, filename, file_input, d, d); } - flushline(); if (v == NULL) { print_error(); return -1; } DECREF(v); + flushline(); return 0; } @@ -230,12 +230,12 @@ return -1; d = getmoduledict(m); v = run_string(command, file_input, d, d); - flushline(); if (v == NULL) { print_error(); return -1; } DECREF(v); + flushline(); return 0; } @@ -244,6 +244,7 @@ { object *exception, *v, *tb, *f; err_fetch(&exception, &v, &tb); + flushline(); if (exception == NULL) fatal("print_error called but no exception"); if (exception == SystemExit) {
