From cd80f430daa7dfe7feeb431ed34f88db5f64aa30 Mon Sep 17 00:00:00 2001 From: Erlend Egeberg Aasland Date: Wed, 17 Feb 2021 11:51:08 +0100 Subject: bpo-40170: Always define PyExceptionClass_Name() as a function (GH-24553) Remove macro variant of PyExceptionClass_Name(). --- Include/cpython/pyerrors.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Include/cpython/pyerrors.h') diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h index c2500d927b..6711e8be68 100644 --- a/Include/cpython/pyerrors.h +++ b/Include/cpython/pyerrors.h @@ -78,10 +78,6 @@ PyAPI_FUNC(void) _PyErr_GetExcInfo(PyThreadState *, PyObject **, PyObject **, Py PyAPI_FUNC(void) _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *); -/* */ - -#define PyExceptionClass_Name(x) (((PyTypeObject*)(x))->tp_name) - /* Convenience functions */ #ifdef MS_WINDOWS -- cgit v1.2.1