Mercurial > cpython-lru_cache-weakref
diff Python/errors.c @ 475:e2c3463c4d91 legacy-trunk
Use new exceptions.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 10 Dec 1991 14:00:03 +0000 |
| parents | 172aa2c3e734 |
| children | db820da3ce03 |
line wrap: on
line diff
--- a/Python/errors.c Tue Dec 10 13:59:17 1991 +0000 +++ b/Python/errors.c Tue Dec 10 14:00:03 1991 +0000 @@ -180,10 +180,10 @@ case E_OK: break; case E_SYNTAX: - err_setstr(RuntimeError, "syntax error"); + err_setstr(ValueError, "syntax error"); break; case E_TOKEN: - err_setstr(RuntimeError, "illegal token"); + err_setstr(ValueError, "illegal token"); break; case E_INTR: err_set(KeyboardInterrupt); @@ -195,7 +195,7 @@ err_set(EOFError); break; default: - err_setstr(RuntimeError, "unknown input error"); + err_setstr(SystemError, "unknown input error"); break; } }
