From 5821bc5145437fd68f4ebc9dad01d1192462f60d Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 13 Aug 2001 23:04:56 +0000 Subject: [PATCH] =?UTF-8?q?Py=5FInitialize():=20Apply=20patch=20by=20J?= =?UTF-8?q?=C3=BCrgen=20Hermann=20to=20call=20=20=20=20=20=5FPyImport=5FFi?= =?UTF-8?q?xupExtension()=20on=20the=20exceptions=20module.=20=20Now=20=20?= =?UTF-8?q?=20=20=20reload(exceptions)=20acts=20just=20like=20reload(sys)?= =?UTF-8?q?=20instead=20of=20raising=20=20=20=20=20an=20ImportError.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This closes SF bug #422004. --- Python/pythonrun.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/pythonrun.c b/Python/pythonrun.c index f5fcaf15de2..f579f44dc7e 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__");