summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-01-04 00:00:31 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-01-04 00:00:31 (GMT)
commit23683ef26d19581a61594c76a45af014c1ff7b13 (patch)
tree2b3f875d4b8359616777772cb7f557d969963e9d /Modules
parentcae969e70afd4e02d9543c3a18f089a1c66de982 (diff)
downloadcpython-23683ef26d19581a61594c76a45af014c1ff7b13.zip
cpython-23683ef26d19581a61594c76a45af014c1ff7b13.tar.gz
cpython-23683ef26d19581a61594c76a45af014c1ff7b13.tar.bz2
Issue #10333: Remove ancient GC API, which has been deprecated since
Python 2.2.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/gcmodule.c8
-rw-r--r--Modules/pyexpat.c2
2 files changed, 1 insertions, 9 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index 432efb3..10a4ed7 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -1511,11 +1511,3 @@ PyObject_GC_Del(void *op)
}
PyObject_FREE(g);
}
-
-/* for binary compatibility with 2.2 */
-#undef _PyObject_GC_Del
-void
-_PyObject_GC_Del(PyObject *op)
-{
- PyObject_GC_Del(op);
-}
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 1a00347..c83639c 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -1522,7 +1522,7 @@ PyDoc_STRVAR(Xmlparsetype__doc__, "XML parser");
static PyTypeObject Xmlparsetype = {
PyVarObject_HEAD_INIT(NULL, 0)
"pyexpat.xmlparser", /*tp_name*/
- sizeof(xmlparseobject) + PyGC_HEAD_SIZE,/*tp_basicsize*/
+ sizeof(xmlparseobject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
(destructor)xmlparse_dealloc, /*tp_dealloc*/