Skip to content

Commit

Permalink
Py_Initialize(): Apply patch by Jürgen Hermann to call
Browse files Browse the repository at this point in the history
    _PyImport_FixupExtension() on the exceptions module.  Now
    reload(exceptions) acts just like reload(sys) instead of raising
    an ImportError.

    This closes SF bug #422004.
  • Loading branch information
warsaw committed Aug 13, 2001
1 parent 0460106 commit 5821bc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Python/pythonrun.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Py_Initialize(void)

/* initialize builtin exceptions */
_PyExc_Init();
_PyImport_FixupExtension("exceptions", "exceptions");

/* phase 2 of builtins */
_PyImport_FixupExtension("__builtin__", "__builtin__");
Expand Down

0 comments on commit 5821bc5

Please sign in to comment.