mirror of
https://github.com/python/cpython.git
synced 2025-07-13 14:25:18 +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:
commit
df6931dbbc
4 changed files with 22 additions and 8 deletions
|
@ -524,9 +524,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
|
||||
|
@ -632,6 +629,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