summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2001-12-21 03:29:12 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2001-12-21 03:29:12 (GMT)
commitf3f6cfe1618213427ab7725465869f234a754f79 (patch)
tree3cef3f823af1c11f6962b1e0f7e37bf79042f1e8 /Python/pythonrun.c
parentf7adf24280c05069432d0f2272a786e293c0e99c (diff)
downloadcpython-f3f6cfe1618213427ab7725465869f234a754f79.zip
cpython-f3f6cfe1618213427ab7725465869f234a754f79.tar.gz
cpython-f3f6cfe1618213427ab7725465869f234a754f79.tar.bz2
backport 2.144:
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 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__");