1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

Use Py_InitModule3() instead of Py_InitModule4() when we only want to set

the docstring for the module.

Doc updates.
This commit is contained in:
Tim Potter
-
parent 3d542abdb1
commit ba5364b306

View File

@ -454,9 +454,12 @@ static PyMethodDef winbind_methods[] = {
/* Name <-> SID conversion */ /* Name <-> SID conversion */
{ "name_to_sid", py_name_to_sid, METH_VARARGS, { "name_to_sid", py_name_to_sid, METH_VARARGS,
"name_to_sid(s) -> string\n "name_to_sid(s) -> string
Return the SID for a name.\n
Example:\n Return the SID for a name.
Example:
>>> winbind.name_to_sid('FOO/Administrator') >>> winbind.name_to_sid('FOO/Administrator')
'S-1-5-21-406022937-1377575209-526660263-500' " }, 'S-1-5-21-406022937-1377575209-526660263-500' " },
@ -626,9 +629,8 @@ void initwinbind(void)
/* Initialise module */ /* Initialise module */
module = Py_InitModule4("winbind", winbind_methods, module = Py_InitModule3("winbind", winbind_methods,
winbind_module__doc__, winbind_module__doc__);
(PyObject*)NULL,PYTHON_API_VERSION);
dict = PyModule_GetDict(module); dict = PyModule_GetDict(module);