From f3f6cfe1618213427ab7725465869f234a754f79 Mon Sep 17 00:00:00 2001 From: Anthony Baxter Date: Fri, 21 Dec 2001 03:29:12 +0000 Subject: [PATCH] =?utf8?q?backport=202.144:=20Py=5FInitialize():=20Apply?= =?utf8?q?=20patch=20by=20J=C3=BCrgen=20Hermann=20to=20call=20=20=20=20=20?= =?utf8?q?=5FPyImport=5FFixupExtension()=20on=20the=20exceptions=20module.?= =?utf8?q?=20=20Now=20=20=20=20=20reload(exceptions)=20acts=20just=20like?= =?utf8?q?=20reload(sys)=20instead=20of=20raising=20=20=20=20=20an=20Impor?= =?utf8?q?tError.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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 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__"); -- 2.47.3