summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-06-21 13:00:33 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-06-21 13:00:33 (GMT)
commitccfdf0923ace5bd64b7667516f18ef8fcce3c4db (patch)
treee89ccc4daccd8cec62bf8ecb5df7c180227811cd /Python/traceback.c
parentac803cd2f3a4a3f60c2fa511ef0b22a6dabe5dec (diff)
parent73c95f194975a9a6226f3f6fd87352e7337a20dd (diff)
downloadcpython-ccfdf0923ace5bd64b7667516f18ef8fcce3c4db.zip
cpython-ccfdf0923ace5bd64b7667516f18ef8fcce3c4db.tar.gz
cpython-ccfdf0923ace5bd64b7667516f18ef8fcce3c4db.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 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;