Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bdbc0b0

Browse files
committed
merge 3.2
2 parents aae61b8 + f748a37 commit bdbc0b0

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

Doc/extending/extending.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -732,13 +732,18 @@ Philbrick ([email protected])::
732732
{NULL, NULL, 0, NULL} /* sentinel */
733733
};
734734

735-
::
735+
static struct PyModuleDef keywdargmodule = {
736+
PyModuleDef_HEAD_INIT,
737+
"keywdarg",
738+
NULL,
739+
-1,
740+
keywdarg_methods
741+
};
736742

737-
void
738-
initkeywdarg(void)
743+
PyMODINIT_FUNC
744+
PyInit_keywdarg(void)
739745
{
740-
/* Create the module and add the functions */
741-
Py_InitModule("keywdarg", keywdarg_methods);
746+
return PyModule_Create(&keywdargmodule);
742747
}
743748

744749

0 commit comments

Comments
 (0)