Mercurial > cpython-lru_cache-weakref
diff Python/errors.c @ 507:fbff2e7cc49d legacy-trunk
EOF while parsing should raise EOFError, not SyntaxError.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 24 Dec 1991 13:26:15 +0000 |
| parents | db820da3ce03 |
| children | d3770b1da611 |
line wrap: on
line diff
--- a/Python/errors.c Tue Dec 24 13:25:19 1991 +0000 +++ b/Python/errors.c Tue Dec 24 13:26:15 1991 +0000 @@ -192,7 +192,7 @@ err_nomem(); break; case E_EOF: - err_setstr(SyntaxError, "unexpected EOF"); + err_setstr(EOFError, "unexpected EOF while parsing"); break; default: err_setstr(SystemError, "unknown parsing error");
