mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-39573: Use the Py_TYPE() macro (GH-21433)
Replace obj->ob_type with Py_TYPE(obj).
This commit is contained in:
parent
d878349bac
commit
8182cc2e68
7 changed files with 12 additions and 12 deletions
|
@ -3325,7 +3325,7 @@ _PyUnicode_WideCharString_Converter(PyObject *obj, void *ptr)
|
|||
}
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"argument must be str, not %.50s",
|
||||
obj->ob_type->tp_name);
|
||||
Py_TYPE(obj)->tp_name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -3361,7 +3361,7 @@ _PyUnicode_WideCharString_Opt_Converter(PyObject *obj, void *ptr)
|
|||
}
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"argument must be str or None, not %.50s",
|
||||
obj->ob_type->tp_name);
|
||||
Py_TYPE(obj)->tp_name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue