#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
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 @@
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 @@
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,