From d2552311f1d4962d0dcea0788b1db889d3da7647 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 18 Jun 2015 12:35:49 +0200 Subject: pytdb: Allow nextkey() to be called nextkey() was defined to take no arguments but expected one. Signed-off-by: Petr Viktorin Reviewed-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher --- lib/tdb/pytdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tdb/pytdb.c b/lib/tdb/pytdb.c index 93207992cb6..bf50258572d 100644 --- a/lib/tdb/pytdb.c +++ b/lib/tdb/pytdb.c @@ -480,7 +480,7 @@ static PyMethodDef tdb_object_methods[] = { "Append data to an existing key." }, { "firstkey", (PyCFunction)obj_firstkey, METH_NOARGS, "S.firstkey() -> data\n" "Return the first key in this database." }, - { "nextkey", (PyCFunction)obj_nextkey, METH_NOARGS, "S.nextkey(key) -> data\n" + { "nextkey", (PyCFunction)obj_nextkey, METH_VARARGS, "S.nextkey(key) -> data\n" "Return the next key in this database." }, { "delete", (PyCFunction)obj_delete, METH_VARARGS, "S.delete(key) -> None\n" "Delete an entry." }, -- cgit v1.2.1