diff options
author | Brett Cannon <brett@python.org> | 2012-04-25 02:03:46 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-04-25 02:03:46 (GMT) |
commit | 8923a4d4c514a621b7f99ee0f3ebdde319aee0e9 (patch) | |
tree | e5e59afdd9843282a57a127398cf8eb04ee57fe2 /Python | |
parent | 4fe29c9657d64e8e3301122c104b7ca8fd23c348 (diff) | |
download | cpython-8923a4d4c514a621b7f99ee0f3ebdde319aee0e9.zip cpython-8923a4d4c514a621b7f99ee0f3ebdde319aee0e9.tar.gz cpython-8923a4d4c514a621b7f99ee0f3ebdde319aee0e9.tar.bz2 |
Issue #14605: Insert to the front of sys.path_hooks instead of appending.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index ab320e5..8cf10e6 100644 --- a/Python/import.c +++ b/Python/import.c @@ -268,8 +268,8 @@ _PyImportZip_Init(void) "# can't import zipimport.zipimporter\n"); } else { - /* sys.path_hooks.append(zipimporter) */ - err = PyList_Append(path_hooks, zipimporter); + /* sys.path_hooks.insert(0, zipimporter) */ + err = PyList_Insert(path_hooks, 0, zipimporter); Py_DECREF(zipimporter); if (err < 0) { goto error; |