Skip to content

Commit d033ddf

Browse files
committed
Get rid of the last mention of WITH_CYCLE_GC that I could find.
1 parent 0e3f591 commit d033ddf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Modules/pyexpat.c

-6
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,6 @@ xmlparse_setattr(xmlparseobject *self, char *name, PyObject *v)
16651665
return -1;
16661666
}
16671667

1668-
#ifdef WITH_CYCLE_GC
16691668
static int
16701669
xmlparse_traverse(xmlparseobject *op, visitproc visit, void *arg)
16711670
{
@@ -1682,7 +1681,6 @@ xmlparse_clear(xmlparseobject *op)
16821681
Py_CLEAR(op->intern);
16831682
return 0;
16841683
}
1685-
#endif
16861684

16871685
PyDoc_STRVAR(Xmlparsetype__doc__, "XML parser");
16881686

@@ -1714,12 +1712,8 @@ static PyTypeObject Xmlparsetype = {
17141712
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_GC, /*tp_flags*/
17151713
#endif
17161714
Xmlparsetype__doc__, /* tp_doc - Documentation string */
1717-
#ifdef WITH_CYCLE_GC
17181715
(traverseproc)xmlparse_traverse, /* tp_traverse */
17191716
(inquiry)xmlparse_clear /* tp_clear */
1720-
#else
1721-
0, 0
1722-
#endif
17231717
};
17241718

17251719
/* End of code for xmlparser objects */

0 commit comments

Comments
 (0)