summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-12-10 15:33:34 +0000
committerGuido van Rossum <guido@python.org>1996-12-10 15:33:34 +0000
commitc9830d0ebb39c0d486412ba7ca0fef4d2bfaa6b6 (patch)
tree9ec2c0fe60607dcf3537a2c82027e1e17466848c /Python/errors.c
parentcaa2b6692428669e026d251f94acebf0799e088f (diff)
downloadcpython-c9830d0ebb39c0d486412ba7ca0fef4d2bfaa6b6.tar.gz
Add const to error and newstring functions
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 29f3cfdb6b..a1ab4b873c 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -124,7 +124,7 @@ err_set(exception)
void
err_setstr(exception, string)
object *exception;
- char *string;
+ const char *string;
{
object *value = newstringobject(string);
err_setval(exception, value);