From c4884007f967ebab9a3fc54a6fe81ece9839efa0 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 5 Feb 1992 11:16:47 +0000 Subject: EOF in source is a SyntaxError, not an EOFError. --- Python/errors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/errors.c b/Python/errors.c index de70f22..5a46d4e 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -192,7 +192,7 @@ err_input(err) err_nomem(); break; case E_EOF: - err_setstr(EOFError, "unexpected EOF while parsing"); + err_setstr(SyntaxError, "unexpected EOF while parsing"); break; default: err_setstr(SystemError, "unknown parsing error"); -- cgit v0.12