mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-33818: PyExceptionClass_Name() will now return "const char *". (GH-7581)
This commit is contained in:
parent
08f127a3ca
commit
ceeef10cdb
6 changed files with 14 additions and 9 deletions
|
@ -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[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue