diff options
author | Christian Heimes <christian@cheimes.de> | 2007-12-19 02:37:44 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-12-19 02:37:44 (GMT) |
commit | e93237dfcc4ee4feee62adafb4e7899487ca864b (patch) | |
tree | b78abc265e7fb10639492f62e4ffd0ce1bcc67af /Modules/pyexpat.c | |
parent | d586559c31b77938b514cec99f2f8b431a34dff5 (diff) | |
download | cpython-e93237dfcc4ee4feee62adafb4e7899487ca864b.zip cpython-e93237dfcc4ee4feee62adafb4e7899487ca864b.tar.gz cpython-e93237dfcc4ee4feee62adafb4e7899487ca864b.tar.bz2 |
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r-- | Modules/pyexpat.c | 4 |
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, |