bpo-33738: Address review comments in GH #7477 (GH-7585)
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index a9929f5..5fd981c 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -142,9 +142,9 @@
#ifndef Py_LIMITED_API
#define PyExceptionClass_Name(x) \
- ((char *)(((PyTypeObject*)(x))->tp_name))
+ ((char *)(((PyTypeObject *)(x))->tp_name))
#else
- PyAPI_FUNC(char *) PyExceptionClass_Name(PyObject*);
+ PyAPI_FUNC(const char *) PyExceptionClass_Name(PyObject *);
#endif
#define PyExceptionInstance_Class(x) ((PyObject*)((x)->ob_type))