summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-06-21 12:59:46 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-06-21 12:59:46 (GMT)
commit73c95f194975a9a6226f3f6fd87352e7337a20dd (patch)
treedca7baf81e9fe784565ffd65894e836ececbea83 /Python/traceback.c
parent753a1dfcc216ad580cfdac6723c381a7bfc72e99 (diff)
downloadcpython-73c95f194975a9a6226f3f6fd87352e7337a20dd.zip
cpython-73c95f194975a9a6226f3f6fd87352e7337a20dd.tar.gz
cpython-73c95f194975a9a6226f3f6fd87352e7337a20dd.tar.bz2
Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add.
Patch by Michael Ensslin.
Diffstat (limited to 'Python/traceback.c')
-rw-r--r--Python/traceback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index 2bea29e..7d1fc2e 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;