summaryrefslogtreecommitdiffstats
path: root/Include
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 /Include
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 'Include')
-rw-r--r--Include/traceback.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/traceback.h b/Include/traceback.h
index 12d467a..891000c 100644
--- a/Include/traceback.h
+++ b/Include/traceback.h
@@ -24,7 +24,7 @@ PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *);
PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *);
#ifndef Py_LIMITED_API
PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int);
-PyAPI_FUNC(void) _PyTraceback_Add(char *, char *, int);
+PyAPI_FUNC(void) _PyTraceback_Add(const char *, const char *, int);
#endif
/* Reveal traceback type so we can typecheck traceback objects */