diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2021-04-28 16:48:55 +1200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2021-10-28 08:58:16 +0000 |
commit | c7c10298973fbf5b234b372d00296e2d400973a9 (patch) | |
tree | 72e73dc92ba7e82a38309d7ae0740a4f75607de8 /lib | |
parent | 0c36416e319e307022d11a915a4ac508c0ab2eea (diff) | |
download | samba-c7c10298973fbf5b234b372d00296e2d400973a9.tar.gz |
Fix Python docstrings
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14848
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Sep 4 00:55:32 UTC 2021 on sn-devel-184
(cherry picked from commit 02b187303369d3ce0c19dfb72ffa78f86a3911f0)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldb/pyldb.c | 2 | ||||
-rw-r--r-- | lib/tdb/pytdb.c | 2 | ||||
-rw-r--r-- | lib/tevent/pytevent.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c index 443b677c2c4..7e86f7413c3 100644 --- a/lib/ldb/pyldb.c +++ b/lib/ldb/pyldb.c @@ -839,7 +839,7 @@ static PyMethodDef py_ldb_dn_methods[] = { "S.get_component_value(num) -> string\n" "get the attribute value of the specified component as a binary string" }, { "set_component", (PyCFunction)py_ldb_dn_set_component, METH_VARARGS, - "S.get_component_value(num, name, value) -> None\n" + "S.set_component(num, name, value) -> None\n" "set the attribute name and value of the specified component" }, { "get_rdn_name", (PyCFunction)py_ldb_dn_get_rdn_name, METH_NOARGS, "S.get_rdn_name() -> string\n" diff --git a/lib/tdb/pytdb.c b/lib/tdb/pytdb.c index 2ea2042c1e5..e2f8ace227f 100644 --- a/lib/tdb/pytdb.c +++ b/lib/tdb/pytdb.c @@ -577,7 +577,7 @@ static PyMethodDef tdb_object_methods[] = { { "add_flags", (PyCFunction)obj_add_flags, METH_VARARGS, "S.add_flags(flags) -> None" }, { "remove_flags", (PyCFunction)obj_remove_flags, METH_VARARGS, "S.remove_flags(flags) -> None" }, #if PY_MAJOR_VERSION >= 3 - { "keys", (PyCFunction)tdb_object_iter, METH_NOARGS, "S.iterkeys() -> iterator" }, + { "keys", (PyCFunction)tdb_object_iter, METH_NOARGS, "S.keys() -> iterator" }, #else { "iterkeys", (PyCFunction)tdb_object_iter, METH_NOARGS, "S.iterkeys() -> iterator" }, #endif diff --git a/lib/tevent/pytevent.c b/lib/tevent/pytevent.c index 93375f71868..62dfe2419ff 100644 --- a/lib/tevent/pytevent.c +++ b/lib/tevent/pytevent.c @@ -573,7 +573,7 @@ static PyMethodDef py_tevent_context_methods[] = { { "add_timer", (PyCFunction)py_tevent_context_add_timer, METH_VARARGS, "S.add_timer(next_event, handler) -> timer" }, { "add_timer_offset", (PyCFunction)py_tevent_context_add_timer_offset, - METH_VARARGS, "S.add_timer(offset_seconds, handler) -> timer" }, + METH_VARARGS, "S.add_timer_offset(offset_seconds, handler) -> timer" }, { "add_fd", (PyCFunction)py_tevent_context_add_fd, METH_VARARGS, "S.add_fd(fd, flags, handler) -> fd" }, {0}, |