mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)
This commit is contained in:
parent
22a9a546ff
commit
dffe4c0709
23 changed files with 56 additions and 57 deletions
|
@ -72,7 +72,7 @@ namespace_repr(PyObject *ns)
|
|||
PyObject *separator, *pairsrepr, *repr = NULL;
|
||||
const char * name;
|
||||
|
||||
name = (Py_TYPE(ns) == &_PyNamespace_Type) ? "namespace"
|
||||
name = Py_IS_TYPE(ns, &_PyNamespace_Type) ? "namespace"
|
||||
: Py_TYPE(ns)->tp_name;
|
||||
|
||||
i = Py_ReprEnter(ns);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue