diff options
Diffstat (limited to 'Objects/exceptions.c')
-rw-r--r-- | Objects/exceptions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index e1615b2..bb50c1c 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -344,10 +344,10 @@ PyException_SetContext(PyObject *self, PyObject *context) #undef PyExceptionClass_Name -char * +const char * PyExceptionClass_Name(PyObject *ob) { - return (char *)((PyTypeObject*)ob)->tp_name; + return ((PyTypeObject*)ob)->tp_name; } static struct PyMemberDef BaseException_members[] = { |