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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user