]> granicus.if.org Git - python/commitdiff
#6732: fix return value of module init function in example.
authorGeorg Brandl <georg@python.org>
Tue, 1 Sep 2009 08:03:26 +0000 (08:03 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 1 Sep 2009 08:03:26 +0000 (08:03 +0000)
Doc/includes/shoddy.c

index bb7f05b107cdd1b37a0ec5d9776042e5417271f5..07a272124ceabaa877a7309058c8c69287fa1b6d 100644 (file)
@@ -95,4 +95,5 @@ PyInit_shoddy(void)
 
     Py_INCREF(&ShoddyType);
     PyModule_AddObject(m, "Shoddy", (PyObject *) &ShoddyType);
+    return m;
 }