diff options
author | Petr Viktorin <pviktori@redhat.com> | 2015-06-18 12:35:49 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-07-21 19:04:15 +0200 |
commit | d2552311f1d4962d0dcea0788b1db889d3da7647 (patch) | |
tree | 63ec88dd16ede1e96d3b15a799088e81d987b530 | |
parent | 5090d491af1a9247b38eaa7c209e98d96360c938 (diff) | |
download | samba-d2552311f1d4962d0dcea0788b1db889d3da7647.tar.gz |
pytdb: Allow nextkey() to be called
nextkey() was defined to take no arguments but expected one.
Signed-off-by: Petr Viktorin <pviktori@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | lib/tdb/pytdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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." }, |