mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393)
Replace direct access to PyObject.ob_type with Py_TYPE().
This commit is contained in:
parent
58ac700fb0
commit
daa9756cb6
26 changed files with 40 additions and 40 deletions
|
@ -539,7 +539,7 @@ deque_concat(dequeobject *deque, PyObject *other)
|
|||
if (rv == 0) {
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"can only concatenate deque (not \"%.200s\") to deque",
|
||||
other->ob_type->tp_name);
|
||||
Py_TYPE(other)->tp_name);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
@ -2395,7 +2395,7 @@ tuplegetter_descr_get(PyObject *self, PyObject *obj, PyObject *type)
|
|||
"descriptor for index '%zd' for tuple subclasses "
|
||||
"doesn't apply to '%s' object",
|
||||
index,
|
||||
obj->ob_type->tp_name);
|
||||
Py_TYPE(obj)->tp_name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue