EOF while parsing should raise EOFError, not SyntaxError.

This commit is contained in:
Guido van Rossum 1991-12-24 13:26:15 +00:00
parent 98256aa518
commit 86d8e63433
1 changed files with 1 additions and 1 deletions

View File

@ -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");