From: Christian Heimes Date: Wed, 21 Nov 2007 00:54:38 +0000 (+0000) Subject: Fixed bug #1020 pyexpat.XMParserType broken (was: pydoc doesn't work on pyexpat) X-Git-Tag: v3.0a2~135 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=651b61f830a124a9ba04d06d3f116beab8e972dc;p=thirdparty%2FPython%2Fcpython.git Fixed bug #1020 pyexpat.XMParserType broken (was: pydoc doesn't work on pyexpat) The sentinel in the methods struct was missing --- diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 658569e92f37..b18e3716465f 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 = {