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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf9e966228c6faa440e1c9b5fa8c41d0be8a721b;p=thirdparty%2FPython%2Fcpython.git 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 ec6c203ad74d..a55aeca4549d 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; }