From: Amaury Forgeot d'Arc Date: Tue, 17 Jun 2008 21:39:46 +0000 (+0000) Subject: Return the module at the end of its init function. X-Git-Tag: v3.0b1~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf9e966228c6faa440e1c9b5fa8c41d0be8a721b;p=python Return the module at the end of its init function. "import _msi" used to raise a SystemError. --- diff --git a/PC/_msi.c b/PC/_msi.c index ec6c203ad7..a55aeca454 100644 --- 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; }