Commit 5821bc51 authored by Barry Warsaw's avatar Barry Warsaw

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.
parent 04601063
...@@ -151,6 +151,7 @@ Py_Initialize(void) ...@@ -151,6 +151,7 @@ Py_Initialize(void)
/* initialize builtin exceptions */ /* initialize builtin exceptions */
_PyExc_Init(); _PyExc_Init();
_PyImport_FixupExtension("exceptions", "exceptions");
/* phase 2 of builtins */ /* phase 2 of builtins */
_PyImport_FixupExtension("__builtin__", "__builtin__"); _PyImport_FixupExtension("__builtin__", "__builtin__");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment