summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-06-21 13:00:58 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-06-21 13:00:58 (GMT)
commit86621ae19be63bf73e51ca71784324a0981b4286 (patch)
treea8e940cb9fa15fccbe21e48e954164f7bdad1bf8 /Python
parent1a2d134e31c3f4ae5d2fdf1fda1557149248acd2 (diff)
parentccfdf0923ace5bd64b7667516f18ef8fcce3c4db (diff)
downloadcpython-86621ae19be63bf73e51ca71784324a0981b4286.zip
cpython-86621ae19be63bf73e51ca71784324a0981b4286.tar.gz
cpython-86621ae19be63bf73e51ca71784324a0981b4286.tar.bz2
Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add.
Patch by Michael Ensslin.
Diffstat (limited to 'Python')
-rw-r--r--Python/traceback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index 71ffecd..941d1cb 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -143,7 +143,7 @@ PyTraceBack_Here(PyFrameObject *frame)
}
/* Insert a frame into the traceback for (funcname, filename, lineno). */
-void _PyTraceback_Add(char *funcname, char *filename, int lineno)
+void _PyTraceback_Add(const char *funcname, const char *filename, int lineno)
{
PyObject *globals = NULL;
PyCodeObject *code = NULL;