diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-06-15 08:09:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-15 08:09:43 (GMT) |
commit | ceeef10cdbc08561f9954e13bbed1cb2299a8c72 (patch) | |
tree | 8b4678e015343dc2f052c672d3a4be00ef313e0f /Objects/exceptions.c | |
parent | 08f127a3cad8ce4eb281d30d9488c91b0fd7cfed (diff) | |
download | cpython-ceeef10cdbc08561f9954e13bbed1cb2299a8c72.zip cpython-ceeef10cdbc08561f9954e13bbed1cb2299a8c72.tar.gz cpython-ceeef10cdbc08561f9954e13bbed1cb2299a8c72.tar.bz2 |
bpo-33818: PyExceptionClass_Name() will now return "const char *". (GH-7581)
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[] = { |