From: Anthony Baxter Date: Fri, 21 Dec 2001 03:29:12 +0000 (+0000) Subject: backport 2.144: X-Git-Tag: v2.1.2c1~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3f6cfe1618213427ab7725465869f234a754f79;p=thirdparty%2FPython%2Fcpython.git backport 2.144: Py_Initialize(): Apply patch by Jürgen Hermann to call _PyImport_FixupExtension() on the exceptions module. Now reload(exceptions) acts just like reload(sys) instead of raising an ImportError. This closes SF bug #422004. --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index d7b8872b57c2..76489fd13a93 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -144,6 +144,7 @@ Py_Initialize(void) /* initialize builtin exceptions */ init_exceptions(); + _PyImport_FixupExtension("exceptions", "exceptions"); /* phase 2 of builtins */ _PyImport_FixupExtension("__builtin__", "__builtin__");