mirror of https://github.com/python/cpython
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:
parent
1076a208b8
commit
651b61f830
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue