commit | daa9756cb6395323d6f291efe5c7d7fdc6b2e9d8 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Fri Feb 07 03:37:06 2020 +0100 |
committer | GitHub <noreply@github.com> | Fri Feb 07 03:37:06 2020 +0100 |
tree | 363abf13e467be17feb0e3eeffc3abe73c437264 | |
parent | 58ac700fb09497df14d4492b6f820109490b2b88 [diff] [blame] |
bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) Replace direct access to PyObject.ob_type with Py_TYPE().
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index f24ec93..2dd63a9 100644 --- a/Modules/cjkcodecs/multibytecodec.c +++ b/Modules/cjkcodecs/multibytecodec.c
@@ -1450,7 +1450,7 @@ PyErr_Format(PyExc_TypeError, "stream function returned a " "non-bytes object (%.100s)", - cres->ob_type->tp_name); + Py_TYPE(cres)->tp_name); goto errorexit; }