]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed bug #1020 pyexpat.XMParserType broken (was: pydoc doesn't work on pyexpat)
authorChristian Heimes <christian@cheimes.de>
Wed, 21 Nov 2007 00:54:38 +0000 (00:54 +0000)
committerChristian Heimes <christian@cheimes.de>
Wed, 21 Nov 2007 00:54:38 +0000 (00:54 +0000)
The sentinel in the methods struct was missing

Modules/pyexpat.c

index 658569e92f3790f4ff59a0a3194653c24913813c..b18e3716465f1895510393d4a15fc669308c8d8e 100644 (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 = {