summaryrefslogtreecommitdiff
path: root/source3/python
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-04-03 04:38:59 +0000
committerTim Potter <tpot@samba.org>2002-04-03 04:38:59 +0000
commitbaee81958216075d7302e81e6e0fc42e10f66bcf (patch)
tree46828f45ad51ea1b4b97a5a90362c9ce23fd402c /source3/python
parentd84338039828d4fefd565a7d9826b5534306f047 (diff)
downloadsamba-baee81958216075d7302e81e6e0fc42e10f66bcf.tar.gz
samba-baee81958216075d7302e81e6e0fc42e10f66bcf.tar.bz2
samba-baee81958216075d7302e81e6e0fc42e10f66bcf.zip
Use Py_InitModule3() instead of Py_InitModule4() when we only want to set
the docstring for the module. Doc updates. (This used to be commit ba5364b30688924d6b69b9fc39a398441a6149e7)
Diffstat (limited to 'source3/python')
-rw-r--r--source3/python/py_winbind.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source3/python/py_winbind.c b/source3/python/py_winbind.c
index 87f348b8c3..657e98281d 100644
--- a/source3/python/py_winbind.c
+++ b/source3/python/py_winbind.c
@@ -454,9 +454,12 @@ static PyMethodDef winbind_methods[] = {
/* Name <-> SID conversion */
{ "name_to_sid", py_name_to_sid, METH_VARARGS,
- "name_to_sid(s) -> string\n
-Return the SID for a name.\n
-Example:\n
+ "name_to_sid(s) -> string
+
+Return the SID for a name.
+
+Example:
+
>>> winbind.name_to_sid('FOO/Administrator')
'S-1-5-21-406022937-1377575209-526660263-500' " },
@@ -626,9 +629,8 @@ void initwinbind(void)
/* Initialise module */
- module = Py_InitModule4("winbind", winbind_methods,
- winbind_module__doc__,
- (PyObject*)NULL,PYTHON_API_VERSION);
+ module = Py_InitModule3("winbind", winbind_methods,
+ winbind_module__doc__);
dict = PyModule_GetDict(module);