From 651b61f830a124a9ba04d06d3f116beab8e972dc Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 21 Nov 2007 00:54:38 +0000 Subject: Fixed bug #1020 pyexpat.XMParserType broken (was: pydoc doesn't work on pyexpat) The sentinel in the methods struct was missing --- Modules/pyexpat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 658569e..b18e371 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -1574,7 +1574,8 @@ xmlparse_clear(xmlparseobject *op) PyDoc_STRVAR(Xmlparsetype__doc__, "XML parser"); static PyMethodDef xmlparse_tp_methods[] = { - {"__dir__", xmlparse_dir, METH_NOARGS} + {"__dir__", xmlparse_dir, METH_NOARGS}, + {NULL, NULL} /* sentinel */ }; static PyTypeObject Xmlparsetype = { -- cgit v0.12