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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user