Fixed bug #1020 pyexpat.XMParserType broken (was: pydoc doesn't work on pyexpat)

The sentinel in the methods struct was missing
This commit is contained in:
Christian Heimes 2007-11-21 00:54:38 +00:00
parent 1076a208b8
commit 651b61f830
1 changed files with 2 additions and 1 deletions

View File

@ -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 = {