Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 28325:850626d47574 legacy-trunk
Fixed SF bug #663074. The codec system was using global static
variables to store internal data. As a result, any atempts to use the
unicode system with multiple active interpreters, or successive
interpreter executions, would fail.
Now that information is stored into members of the PyInterpreterState
structure.
| author | Gustavo Niemeyer <gustavo@niemeyer.net> |
|---|---|
| date | Wed, 19 Mar 2003 00:35:36 +0000 |
| parents | 04df965d675b |
| children | be2ecafb15ad |
line wrap: on
line diff
--- a/Python/pythonrun.c Tue Mar 18 18:48:17 2003 +0000 +++ b/Python/pythonrun.c Wed Mar 19 00:35:36 2003 +0000 @@ -49,8 +49,6 @@ static void call_ll_exitfuncs(void); extern void _PyUnicode_Init(void); extern void _PyUnicode_Fini(void); -extern void _PyCodecRegistry_Init(void); -extern void _PyCodecRegistry_Fini(void); int Py_DebugFlag; /* Needed by parser.c */ int Py_VerboseFlag; /* Needed by import.c */ @@ -144,9 +142,6 @@ if (interp->modules == NULL) Py_FatalError("Py_Initialize: can't make modules dictionary"); - /* Init codec registry */ - _PyCodecRegistry_Init(); - #ifdef Py_USING_UNICODE /* Init Unicode implementation; relies on the codec registry */ _PyUnicode_Init(); @@ -257,9 +252,6 @@ /* Disable signal handling */ PyOS_FiniInterrupts(); - /* Cleanup Codec registry */ - _PyCodecRegistry_Fini(); - /* drop module references we saved */ Py_XDECREF(PyModule_WarningsModule); PyModule_WarningsModule = NULL;
