summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-10 14:00:03 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-10 14:00:03 (GMT)
commit87e7ea72a6ef9232be9db06038943044c747971b (patch)
tree0482b0b111b4779a18f680db9a1c5bd10ca0005f /Python/errors.c
parent97ff5308fe3e490aac51316cf5575c6119227cc8 (diff)
downloadcpython-87e7ea72a6ef9232be9db06038943044c747971b.zip
cpython-87e7ea72a6ef9232be9db06038943044c747971b.tar.gz
cpython-87e7ea72a6ef9232be9db06038943044c747971b.tar.bz2
Use new exceptions.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 70a85ba..3b7d4a1 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -180,10 +180,10 @@ err_input(err)
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_input(err)
err_set(EOFError);
break;
default:
- err_setstr(RuntimeError, "unknown input error");
+ err_setstr(SystemError, "unknown input error");
break;
}
}