diff options
author | Barry Warsaw <barry@python.org> | 2001-08-13 23:04:56 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-08-13 23:04:56 (GMT) |
commit | 5821bc5145437fd68f4ebc9dad01d1192462f60d (patch) | |
tree | 8820394977abba57ff120168ed3b9cecb040d210 /Python/pythonrun.c | |
parent | 04601063e8114294fc558cb108af98396d1e7653 (diff) | |
download | cpython-5821bc5145437fd68f4ebc9dad01d1192462f60d.zip cpython-5821bc5145437fd68f4ebc9dad01d1192462f60d.tar.gz cpython-5821bc5145437fd68f4ebc9dad01d1192462f60d.tar.bz2 |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index f5fcaf1..f579f44 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__"); |