diff --git a/Python/errors.c b/Python/errors.c index d61af3bb24c..de70f22f9a9 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -192,7 +192,7 @@ err_input(err) 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");