summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-04-26 04:27:06 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-04-26 04:27:06 (GMT)
commit9fa47ebafedaf1aef4480bc115b182a62efb79e1 (patch)
tree0d97445bce1727b9003c43c1dfa8cfbb3787ce5f /Python/import.c
parent1138944888d13d2600241ca0d9408e018077d691 (diff)
parente0d88a173c5ccc346b8d7c6e805f0e49b4ea92f7 (diff)
downloadcpython-9fa47ebafedaf1aef4480bc115b182a62efb79e1.zip
cpython-9fa47ebafedaf1aef4480bc115b182a62efb79e1.tar.gz
cpython-9fa47ebafedaf1aef4480bc115b182a62efb79e1.tar.bz2
merge heads
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c4
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;