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.
This commit is contained in:
Barry Warsaw 2001-08-13 23:04:56 +00:00
parent 04601063e8
commit 5821bc5145
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ Py_Initialize(void)
/* initialize builtin exceptions */
_PyExc_Init();
_PyImport_FixupExtension("exceptions", "exceptions");
/* phase 2 of builtins */
_PyImport_FixupExtension("__builtin__", "__builtin__");