summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/errors.c2
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");