diff options
author | Guido van Rossum <guido@python.org> | 1992-02-05 11:16:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-02-05 11:16:47 (GMT) |
commit | c4884007f967ebab9a3fc54a6fe81ece9839efa0 (patch) | |
tree | c514b1d4deb7987b198ecf8e0cd1d78576ad3778 | |
parent | 4ddf8cc408171a685507126a669843a16cfb0f2d (diff) | |
download | cpython-c4884007f967ebab9a3fc54a6fe81ece9839efa0.zip cpython-c4884007f967ebab9a3fc54a6fe81ece9839efa0.tar.gz cpython-c4884007f967ebab9a3fc54a6fe81ece9839efa0.tar.bz2 |
EOF in source is a SyntaxError, not an EOFError.
-rw-r--r-- | Python/errors.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |