diff Python/errors.c @ 660:d3770b1da611 legacy-trunk

EOF in source is a SyntaxError, not an EOFError.
author Guido van Rossum <guido@python.org>
date Wed, 05 Feb 1992 11:16:47 +0000
parents fbff2e7cc49d
children 0cd197947d81
line wrap: on
line diff
--- a/Python/errors.c	Wed Feb 05 11:16:28 1992 +0000
+++ b/Python/errors.c	Wed Feb 05 11:16:47 1992 +0000
@@ -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");