diff options
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index b735228ea5..06ea6b4dcd 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -191,7 +191,6 @@ initimport(PyInterpreterState *interp, PyObject *sysmod) PyObject *importlib; PyObject *impmod; PyObject *value; - _PyInitError err; /* Import _importlib through its frozen version, _frozen_importlib. */ if (PyImport_ImportFrozenModule("_frozen_importlib") <= 0) { @@ -233,11 +232,6 @@ initimport(PyInterpreterState *interp, PyObject *sysmod) Py_DECREF(value); Py_DECREF(impmod); - err = _PyImportZip_Init(); - if (_Py_INIT_FAILED(err)) { - return err; - } - return _Py_INIT_OK(); } @@ -252,7 +246,7 @@ initexternalimport(PyInterpreterState *interp) return _Py_INIT_ERR("external importer setup failed"); } Py_DECREF(value); - return _Py_INIT_OK(); + return _PyImportZip_Init(); } /* Helper functions to better handle the legacy C locale |