diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3b0b4173408724..12f1e2149de942 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -290,12 +290,6 @@ init_interned_dict(PyInterpreterState *interp) static void clear_interned_dict(PyInterpreterState *interp) { - PyObject *interned = get_interned_dict(interp); - if (interned != NULL) { - PyDict_Clear(interned); - Py_DECREF(interned); - _Py_INTERP_CACHED_OBJECT(interp, interned_strings) = NULL; - } if (_Py_IsMainInterpreter(interp) && INTERNED_STRINGS != NULL) { _Py_hashtable_destroy(INTERNED_STRINGS); INTERNED_STRINGS = NULL; @@ -15533,9 +15527,6 @@ _PyUnicode_Fini(PyInterpreterState *interp) { struct _Py_unicode_state *state = &interp->unicode; - // _PyUnicode_ClearInterned() must be called before _PyUnicode_Fini() - assert(get_interned_dict(interp) == NULL); - _PyUnicode_FiniEncodings(&state->fs_codec); // bpo-47182: force a unicodedata CAPI capsule re-import on pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy