summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2001-08-13 23:04:56 +0000
committerBarry Warsaw <barry@python.org>2001-08-13 23:04:56 +0000
commit14c32759ca953db6a2d15052014bb665cce059ea (patch)
tree4c90e546b1bbecb656878783b9f4c4e3b228239b /Python/pythonrun.c
parent20733f3774a82e4a1d7e5fe3192a17acaa5fd821 (diff)
downloadcpython-14c32759ca953db6a2d15052014bb665cce059ea.tar.gz
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.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c1
1 files changed, 1 insertions, 0 deletions
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__");