diff options
author | Barry Warsaw <barry@python.org> | 2001-08-13 23:04:56 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-08-13 23:04:56 +0000 |
commit | 14c32759ca953db6a2d15052014bb665cce059ea (patch) | |
tree | 4c90e546b1bbecb656878783b9f4c4e3b228239b /Python/pythonrun.c | |
parent | 20733f3774a82e4a1d7e5fe3192a17acaa5fd821 (diff) | |
download | cpython-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.c | 1 |
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__"); |