Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 21508:097dd953e119 2.1
backport 2.144:
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.
| author | Anthony Baxter <anthonybaxter@gmail.com> |
|---|---|
| date | Fri, 21 Dec 2001 03:29:12 +0000 |
| parents | 32fb6643adf1 |
| children | 85e694e9b9fc |
line wrap: on
line diff
--- a/Python/pythonrun.c Thu Dec 20 02:07:36 2001 +0000 +++ b/Python/pythonrun.c Fri Dec 21 03:29:12 2001 +0000 @@ -144,6 +144,7 @@ /* initialize builtin exceptions */ init_exceptions(); + _PyImport_FixupExtension("exceptions", "exceptions"); /* phase 2 of builtins */ _PyImport_FixupExtension("__builtin__", "__builtin__");
