summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-02-17 10:51:08 (GMT)
committerGitHub <noreply@github.com>2021-02-17 10:51:08 (GMT)
commitcd80f430daa7dfe7feeb431ed34f88db5f64aa30 (patch)
tree0f9872a24b851c515b3ab1853bb7cd834f7cee67 /Include
parent801bb0b5035f8eeafe389dc082c02dfafaa07f6a (diff)
downloadcpython-cd80f430daa7dfe7feeb431ed34f88db5f64aa30.zip
cpython-cd80f430daa7dfe7feeb431ed34f88db5f64aa30.tar.gz
cpython-cd80f430daa7dfe7feeb431ed34f88db5f64aa30.tar.bz2
bpo-40170: Always define PyExceptionClass_Name() as a function (GH-24553)
Remove macro variant of PyExceptionClass_Name().
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/pyerrors.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h
index c2500d9..6711e8b 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