summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs
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/cjkcodecs
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/cjkcodecs')
-rw-r--r--Modules/cjkcodecs/multibytecodec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.h b/Modules/cjkcodecs/multibytecodec.h
index 94670ec..4d2b355 100644
--- a/Modules/cjkcodecs/multibytecodec.h
+++ b/Modules/cjkcodecs/multibytecodec.h
@@ -65,7 +65,7 @@ typedef struct {
MultibyteCodec *codec;
} MultibyteCodecObject;
-#define MultibyteCodec_Check(op) (Py_TYPE(op) == &MultibyteCodec_Type)
+#define MultibyteCodec_Check(op) Py_IS_TYPE((op), &MultibyteCodec_Type)
#define _MultibyteStatefulCodec_HEAD \
PyObject_HEAD \