py_net: Fix typo in change_password docstring, and indentation in
authorJelmer Vernooij <jelmer@samba.org>
Sun, 12 Oct 2014 23:07:41 +0000 (16:07 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 14 Oct 2014 04:44:06 +0000 (06:44 +0200)
set_password docstring.

Change-Id: I93e9ed79ee43233fc3c1bb69d8eb0a5c6e0e3940
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/libnet/py_net.c

index 7981aad02257e8e876758121542e07c16f0723ec..f4bd4586cb7e2308bcad811ab10f88ab1cfc6315 100644 (file)
@@ -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)