]> granicus.if.org Git - python/commitdiff
Return the module at the end of its init function.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 17 Jun 2008 21:39:46 +0000 (21:39 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 17 Jun 2008 21:39:46 +0000 (21:39 +0000)
"import _msi" used to raise a SystemError.

PC/_msi.c

index ec6c203ad74d598852e9b1fcca95e21be219c46d..a55aeca4549d0ec7abad2c5fd6e12be055db3933 100644 (file)
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -1065,5 +1065,5 @@ PyInit__msi(void)
     if (!MSIError)
        return NULL;
     PyModule_AddObject(m, "MSIError", MSIError);
-    return NULL;
+    return m;
 }