From: Barry Warsaw Date: Mon, 13 Aug 2001 23:04:56 +0000 (+0000) Subject: Py_Initialize(): Apply patch by Jürgen Hermann to call X-Git-Tag: v2.2a3~575 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5821bc5145437fd68f4ebc9dad01d1192462f60d;p=python 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 f5fcaf15de..f579f44dc7 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -151,6 +151,7 @@ Py_Initialize(void) /* initialize builtin exceptions */ _PyExc_Init(); + _PyImport_FixupExtension("exceptions", "exceptions"); /* phase 2 of builtins */ _PyImport_FixupExtension("__builtin__", "__builtin__");