bpo-39573: Use Py_TYPE() macro in Python and Include directories (GH-18391)

Replace direct access to PyObject.ob_type with Py_TYPE().
This commit is contained in:
Victor Stinner
2020-02-07 02:24:48 +01:00
committed by GitHub
parent 38aaaaac80
commit a102ed7d2f
12 changed files with 39 additions and 39 deletions

View File

@@ -658,7 +658,7 @@ static void wrong_exception_type(PyObject *exc)
{
PyErr_Format(PyExc_TypeError,
"don't know how to handle %.200s in error callback",
exc->ob_type->tp_name);
Py_TYPE(exc)->tp_name);
}
PyObject *PyCodec_StrictErrors(PyObject *exc)