summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r--Modules/pyexpat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 301fbf5..2d2c4c5 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -974,7 +974,7 @@ readinst(char *buf, int buf_size, PyObject *meth)
if (!PyString_Check(str)) {
PyErr_Format(PyExc_TypeError,
"read() did not return a string object (type=%.400s)",
- Py_Type(str)->tp_name);
+ Py_TYPE(str)->tp_name);
goto finally;
}
len = PyString_GET_SIZE(str);
@@ -1859,7 +1859,7 @@ MODULE_INITFUNC(void)
if (modelmod_name == NULL)
return;
- Py_Type(&Xmlparsetype) = &PyType_Type;
+ Py_TYPE(&Xmlparsetype) = &PyType_Type;
/* Create the module and add the functions */
m = Py_InitModule3(MODULE_NAME, pyexpat_methods,