diff options
author | Guido van Rossum <guido@python.org> | 1991-12-24 13:26:15 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-12-24 13:26:15 (GMT) |
commit | 86d8e634337c3e4b36c504d16e6ff8d1a5fd89f5 (patch) | |
tree | 5901c73b371ac894d0e754097670e50850f12d5b /Python/errors.c | |
parent | 98256aa518d3317b03581246195eb572beb58a47 (diff) | |
download | cpython-86d8e634337c3e4b36c504d16e6ff8d1a5fd89f5.zip cpython-86d8e634337c3e4b36c504d16e6ff8d1a5fd89f5.tar.gz cpython-86d8e634337c3e4b36c504d16e6ff8d1a5fd89f5.tar.bz2 |
EOF while parsing should raise EOFError, not SyntaxError.
Diffstat (limited to 'Python/errors.c')
-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 d61af3b..de70f22 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"); |