summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2020-03-04 13:15:20 (GMT)
committerGitHub <noreply@github.com>2020-03-04 13:15:20 (GMT)
commitdffe4c07095e0c693e094d3c140e85a68bd8128e (patch)
tree1f58f4c2f76d6f630c5279a7b72d31bb6b4d8873 /Modules/_pickle.c
parent22a9a546ff3bf2a63d77ca1e5494e758bc59132f (diff)
downloadcpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.zip
cpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.tar.gz
cpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.tar.bz2
bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r--Modules/_pickle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index bcbd3c0..6b903da 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -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;