commit | c4884007f967ebab9a3fc54a6fe81ece9839efa0 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Feb 05 11:16:47 1992 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Feb 05 11:16:47 1992 +0000 |
tree | c514b1d4deb7987b198ecf8e0cd1d78576ad3778 | |
parent | 4ddf8cc408171a685507126a669843a16cfb0f2d [diff] [blame] |
EOF in source is a SyntaxError, not an EOFError.
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_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");