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:
parent
04601063e8
commit
5821bc5145
|
@ -151,6 +151,7 @@ Py_Initialize(void)
|
|||
|
||||
/* initialize builtin exceptions */
|
||||
_PyExc_Init();
|
||||
_PyImport_FixupExtension("exceptions", "exceptions");
|
||||
|
||||
/* phase 2 of builtins */
|
||||
_PyImport_FixupExtension("__builtin__", "__builtin__");
|
||||
|
|
Loading…
Reference in New Issue