Commit c4884007 authored by Guido van Rossum's avatar Guido van Rossum

EOF in source is a SyntaxError, not an EOFError.

parent 4ddf8cc4
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment