summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-24 13:26:15 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-24 13:26:15 (GMT)
commit86d8e634337c3e4b36c504d16e6ff8d1a5fd89f5 (patch)
tree5901c73b371ac894d0e754097670e50850f12d5b /Python/errors.c
parent98256aa518d3317b03581246195eb572beb58a47 (diff)
downloadcpython-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.c2
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");