summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-07-10 10:40:38 (GMT)
committerGitHub <noreply@github.com>2020-07-10 10:40:38 (GMT)
commit8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1 (patch)
tree697757da0c635614b16aafc81c3ea1172a634a53 /Modules
parentd878349bac6c154fbfeffe7d4b38e2ddb833f135 (diff)
downloadcpython-8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1.zip
cpython-8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1.tar.gz
cpython-8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1.tar.bz2
bpo-39573: Use the Py_TYPE() macro (GH-21433)
Replace obj->ob_type with Py_TYPE(obj).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_elementtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index 2c92a8a..85fdfa7 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -2040,7 +2040,7 @@ element_attrib_setter(ElementObject *self, PyObject *value, void *closure)
if (!PyDict_Check(value)) {
PyErr_Format(PyExc_TypeError,
"attrib must be dict, not %.200s",
- value->ob_type->tp_name);
+ Py_TYPE(value)->tp_name);
return -1;
}
if (!self->extra) {