diff options
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index b6310c9..9dd769a 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -754,7 +754,6 @@ pycore_init_types(PyInterpreterState *interp) if (_PyStatus_EXCEPTION(status)) { return status; } - return _PyStatus_OK(); } @@ -827,7 +826,10 @@ pycore_interp_init(PyThreadState *tstate) if (_PyStatus_EXCEPTION(status)) { return status; } - + // Intern strings in deep-frozen modules first so that others + // can use it instead of creating a heap allocated string. + _Py_Deepfreeze_Init(); + status = pycore_init_types(interp); if (_PyStatus_EXCEPTION(status)) { goto done; |