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

Skip to content

Commit 2c52e2f

Browse files
committed
#6732: fix return value of module init function in example.
1 parent 11b6a64 commit 2c52e2f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Doc/includes/shoddy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,5 @@ PyInit_shoddy(void)
9595

9696
Py_INCREF(&ShoddyType);
9797
PyModule_AddObject(m, "Shoddy", (PyObject *) &ShoddyType);
98+
return m;
9899
}

0 commit comments

Comments
 (0)