mirror of
https://github.com/python/cpython.git
synced 2025-07-18 16:55:20 +00:00
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:
parent
5de183a07c
commit
957a23b088
4 changed files with 22 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue