File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -290,12 +290,6 @@ init_interned_dict(PyInterpreterState *interp)
290
290
static void
291
291
clear_interned_dict (PyInterpreterState * interp )
292
292
{
293
- PyObject * interned = get_interned_dict (interp );
294
- if (interned != NULL ) {
295
- PyDict_Clear (interned );
296
- Py_DECREF (interned );
297
- _Py_INTERP_CACHED_OBJECT (interp , interned_strings ) = NULL ;
298
- }
299
293
if (_Py_IsMainInterpreter (interp ) && INTERNED_STRINGS != NULL ) {
300
294
_Py_hashtable_destroy (INTERNED_STRINGS );
301
295
INTERNED_STRINGS = NULL ;
@@ -15533,9 +15527,6 @@ _PyUnicode_Fini(PyInterpreterState *interp)
15533
15527
{
15534
15528
struct _Py_unicode_state * state = & interp -> unicode ;
15535
15529
15536
- // _PyUnicode_ClearInterned() must be called before _PyUnicode_Fini()
15537
- assert (get_interned_dict (interp ) == NULL );
15538
-
15539
15530
_PyUnicode_FiniEncodings (& state -> fs_codec );
15540
15531
15541
15532
// bpo-47182: force a unicodedata CAPI capsule re-import on
You can’t perform that action at this time.
0 commit comments