[PATCH 3/4] py_net: Fix typo in change_password docstring, and indentation in set_password docstring.
Jelmer Vernooij
jelmer at samba.org
Sun Oct 12 17:48:21 MDT 2014
Change-Id: I93e9ed79ee43233fc3c1bb69d8eb0a5c6e0e3940
Signed-off-by: Jelmer Vernooij <jelmer at samba.org>
---
source4/libnet/py_net.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c
index 7981aad..f4bd458 100644
--- a/source4/libnet/py_net.c
+++ b/source4/libnet/py_net.c
@@ -129,7 +129,7 @@ static PyObject *py_net_change_password(py_net_Object *self, PyObject *args, PyO
static const char py_net_change_password_doc[] = "change_password(newpassword) -> True\n\n" \
"Change password for a user. You must supply credential with enough rights to do this.\n\n" \
"Sample usage is:\n" \
-"net.set_password(newpassword=<new_password>\n";
+"net.change_password(newpassword=<new_password>)\n";
static PyObject *py_net_set_password(py_net_Object *self, PyObject *args, PyObject *kwargs)
@@ -178,9 +178,7 @@ static PyObject *py_net_set_password(py_net_Object *self, PyObject *args, PyObje
static const char py_net_set_password_doc[] = "set_password(account_name, domain_name, newpassword) -> True\n\n" \
"Set password for a user. You must supply credential with enough rights to do this.\n\n" \
"Sample usage is:\n" \
-"net.set_password(account_name=<account_name>,\n" \
-" domain_name=domain_name,\n" \
-" newpassword=new_pass)\n";
+"net.set_password(account_name=account_name, domain_name=domain_name, newpassword=new_pass)\n";
static PyObject *py_net_time(py_net_Object *self, PyObject *args, PyObject *kwargs)
--
2.1.1
More information about the samba-technical
mailing list