mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -4974,7 +4974,7 @@ Pickler_set_memo(PicklerObject *self, PyObject *obj, void *Py_UNUSED(ignored))
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (Py_TYPE(obj) == &PicklerMemoProxyType) {
|
||||
if (Py_IS_TYPE(obj, &PicklerMemoProxyType)) {
|
||||
PicklerObject *pickler =
|
||||
((PicklerMemoProxyObject *)obj)->pickler;
|
||||
|
||||
|
@ -7519,7 +7519,7 @@ Unpickler_set_memo(UnpicklerObject *self, PyObject *obj, void *Py_UNUSED(ignored
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (Py_TYPE(obj) == &UnpicklerMemoProxyType) {
|
||||
if (Py_IS_TYPE(obj, &UnpicklerMemoProxyType)) {
|
||||
UnpicklerObject *unpickler =
|
||||
((UnpicklerMemoProxyObject *)obj)->unpickler;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue