mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
bpo-38858: Call _PyUnicode_Fini() in Py_EndInterpreter() (GH-17330)
Py_EndInterpreter() now clears the filesystem codec.
This commit is contained in:
parent
310e2d2517
commit
3d4833488a
3 changed files with 25 additions and 22 deletions
|
@ -1182,9 +1182,6 @@ finalize_interp_types(PyThreadState *tstate, int is_main_interp)
|
|||
_PySet_Fini();
|
||||
_PyBytes_Fini();
|
||||
_PyLong_Fini();
|
||||
}
|
||||
|
||||
if (is_main_interp) {
|
||||
_PyFloat_Fini();
|
||||
_PyDict_Fini();
|
||||
_PySlice_Fini();
|
||||
|
@ -1197,9 +1194,12 @@ finalize_interp_types(PyThreadState *tstate, int is_main_interp)
|
|||
_PyArg_Fini();
|
||||
_PyAsyncGen_Fini();
|
||||
_PyContext_Fini();
|
||||
}
|
||||
|
||||
/* Cleanup Unicode implementation */
|
||||
_PyUnicode_Fini();
|
||||
/* Cleanup Unicode implementation */
|
||||
_PyUnicode_Fini(tstate);
|
||||
|
||||
if (is_main_interp) {
|
||||
_Py_ClearFileSystemEncoding();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue