Issue #17408: Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again.

This commit is contained in:
Antoine Pitrou 2013-05-04 20:45:02 +02:00
parent 5de183a07c
commit 957a23b088
4 changed files with 22 additions and 8 deletions

View file

@ -506,9 +506,6 @@ Py_Finalize(void)
/* Disable signal handling */
PyOS_FiniInterrupts();
/* Clear type lookup cache */
PyType_ClearCache();
/* Collect garbage. This may call finalizers; it's nice to call these
* before all modules are destroyed.
* XXX If a __del__ or weakref callback is triggered here, and tries to
@ -614,6 +611,7 @@ Py_Finalize(void)
PyFloat_Fini();
PyDict_Fini();
PySlice_Fini();
_PyType_Fini();
/* Cleanup Unicode implementation */
_PyUnicode_Fini();