mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521)
This commit is contained in:
parent
a7847590f0
commit
1b55b65638
33 changed files with 56 additions and 56 deletions
|
@ -302,7 +302,7 @@ type_mro_modified(PyTypeObject *type, PyObject *bases) {
|
|||
each subclass when their mro is recursively updated.
|
||||
*/
|
||||
Py_ssize_t i, n;
|
||||
int custom = (Py_TYPE(type) != &PyType_Type);
|
||||
int custom = !Py_IS_TYPE(type, &PyType_Type);
|
||||
int unbound;
|
||||
PyObject *mro_meth = NULL;
|
||||
PyObject *type_mro_meth = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue