Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 21496:65f4094f43f4 | 21508:097dd953e119 |
|---|---|
| 142 | 142 |
| 143 _PyImport_Init(); | 143 _PyImport_Init(); |
| 144 | 144 |
| 145 /* initialize builtin exceptions */ | 145 /* initialize builtin exceptions */ |
| 146 init_exceptions(); | 146 init_exceptions(); |
| 147 _PyImport_FixupExtension("exceptions", "exceptions"); | |
| 147 | 148 |
| 148 /* phase 2 of builtins */ | 149 /* phase 2 of builtins */ |
| 149 _PyImport_FixupExtension("__builtin__", "__builtin__"); | 150 _PyImport_FixupExtension("__builtin__", "__builtin__"); |
| 150 | 151 |
| 151 initsigs(); /* Signal handling stuff, including initintr() */ | 152 initsigs(); /* Signal handling stuff, including initintr() */ |
