mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
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:
parent
38aaaaac80
commit
a102ed7d2f
12 changed files with 39 additions and 39 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue