]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix Python docstrings
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 28 Apr 2021 04:48:55 +0000 (16:48 +1200)
committerJeremy Allison <jra@samba.org>
Sat, 4 Sep 2021 00:55:32 +0000 (00:55 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Sep  4 00:55:32 UTC 2021 on sn-devel-184

lib/ldb/pyldb.c
lib/tdb/pytdb.c
lib/tevent/pytevent.c
source4/librpc/ndr/py_security.c

index dadea2a7d6e62932e6700cf2588f172a6ba22a7b..f849e7eb8e6f86289171a4c50f2f3acd631a6cba 100644 (file)
@@ -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"
index 2ea2042c1e5d13bdcd4aaffbaf6d8d06a7cef6ab..e2f8ace227faaacda7ef7fafff34b2d78a04b48d 100644 (file)
@@ -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
index 93375f718682e15d3ce02b03b0862bcba6b979c0..62dfe2419ff5571cb213f72b20e8ecca743a9813 100644 (file)
@@ -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},
index b5531d5830433cd9e717fd6e5a535330a5f9264d..e79e717081218bf3856c5e67db8b33c352be5533 100644 (file)
@@ -447,7 +447,7 @@ static PyMethodDef py_token_extra_methods[] = {
        { "has_sid", (PyCFunction)py_token_has_sid, METH_VARARGS,
                NULL },
        { "is_anonymous", (PyCFunction)py_token_is_anonymous, METH_NOARGS,
-               "S.is_anonymus() -> bool\n"
+               "S.is_anonymous() -> bool\n"
                "Check whether this is an anonymous token." },
        { "is_system", (PyCFunction)py_token_is_system, METH_NOARGS,
                NULL },