summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-21 00:54:38 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-11-21 00:54:38 (GMT)
commit651b61f830a124a9ba04d06d3f116beab8e972dc (patch)
tree72b36df73961f2274108fbe0d07189235c884efa
parent1076a208b81c44d348e5a06bd4c4b930e31aa292 (diff)
downloadcpython-651b61f830a124a9ba04d06d3f116beab8e972dc.zip
cpython-651b61f830a124a9ba04d06d3f116beab8e972dc.tar.gz
cpython-651b61f830a124a9ba04d06d3f116beab8e972dc.tar.bz2
Fixed bug #1020 pyexpat.XMParserType broken (was: pydoc doesn't work on pyexpat)
The sentinel in the methods struct was missing
-rw-r--r--Modules/pyexpat.c3
1 files changed, 2 insertions, 1 deletions
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 = {