summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-12-11 14:04:59 +0000
committerMartin v. Löwis <martin@v.loewis.de>2002-12-11 14:04:59 +0000
commit95292d6caa3af3196c5b9f5f95dae209815c09e5 (patch)
tree193e6e6a45f1e1319e4bb4ba07a3fee838a2ca5d /Python/errors.c
parent0e88c9f65d163c0c8551d0f079a19b71a8a9e3ca (diff)
downloadcpython-git-95292d6caa3af3196c5b9f5f95dae209815c09e5.tar.gz
Constify filenames and scripts. Fixes #651362.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 95c24a685e..e50960661e 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -637,9 +637,9 @@ PyErr_Warn(PyObject *category, char *message)
/* Warning with explicit origin */
int
-PyErr_WarnExplicit(PyObject *category, char *message,
- char *filename, int lineno,
- char *module, PyObject *registry)
+PyErr_WarnExplicit(PyObject *category, const char *message,
+ const char *filename, int lineno,
+ const char *module, PyObject *registry)
{
PyObject *mod, *dict, *func = NULL;
@@ -679,7 +679,7 @@ PyErr_WarnExplicit(PyObject *category, char *message,
to make printing of exceptions believe it is a syntax error. */
void
-PyErr_SyntaxLocation(char *filename, int lineno)
+PyErr_SyntaxLocation(const char *filename, int lineno)
{
PyObject *exc, *v, *tb, *tmp;
@@ -743,7 +743,7 @@ PyErr_SyntaxLocation(char *filename, int lineno)
*/
PyObject *
-PyErr_ProgramText(char *filename, int lineno)
+PyErr_ProgramText(const char *filename, int lineno)
{
FILE *fp;
int i;