From f3f6cfe1618213427ab7725465869f234a754f79 Mon Sep 17 00:00:00 2001 From: Anthony Baxter Date: Fri, 21 Dec 2001 03:29:12 +0000 Subject: =?UTF-8?q?backport=202.144:=20Py=5FInitialize():=20Apply=20patch?= =?UTF-8?q?=20by=20J=C3=BCrgen=20Hermann=20to=20call=20=20=20=20=20=5FPyIm?= =?UTF-8?q?port=5FFixupExtension()=20on=20the=20exceptions=20module.=20=20?= =?UTF-8?q?Now=20=20=20=20=20reload(exceptions)=20acts=20just=20like=20rel?= =?UTF-8?q?oad(sys)=20instead=20of=20raising=20=20=20=20=20an=20ImportErro?= =?UTF-8?q?r.?= 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 d7b8872..76489fd 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__"); -- cgit v0.12