]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pyldb: Fix documentation comment on Message.from_dict() method
authorAndrew Bartlett <abartlet@samba.org>
Mon, 25 Mar 2024 09:30:29 +0000 (22:30 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 28 Mar 2024 01:50:40 +0000 (01:50 +0000)
This method does not take keyword arguments.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/pyldb.c

index 60ec4d299c434200bb10c3bc97cf31f4c9166ba1..fc11599a93d511e7101943f6d75901bbbf76b9f7 100644 (file)
@@ -3748,7 +3748,7 @@ static PyObject *py_ldb_msg_add(PyLdbMessageObject *self, PyObject *args)
 
 static PyMethodDef py_ldb_msg_methods[] = {
        { "from_dict", (PyCFunction)py_ldb_msg_from_dict, METH_CLASS | METH_VARARGS,
-               "Message.from_dict(ldb, dict, mod_flag=FLAG_MOD_REPLACE) -> ldb.Message\n"
+               "Message.from_dict(ldb, dict, mod_flag) -> ldb.Message\n"
                "Class method to create ldb.Message object from Dictionary.\n"
                "mod_flag is one of FLAG_MOD_ADD, FLAG_MOD_REPLACE or FLAG_MOD_DELETE."},
        { "keys", (PyCFunction)py_ldb_msg_keys, METH_NOARGS,