Kaydet (Commit) 86d8e634 authored tarafından Guido van Rossum's avatar Guido van Rossum

EOF while parsing should raise EOFError, not SyntaxError.

üst 98256aa5
......@@ -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");
......
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