[Python-checkins] r42488 - python/branches/release24-maint/Modules/zipimport.c
georg.brandl
python-checkins at python.org
Sun Feb 19 10:39:02 CET 2006
Author: georg.brandl
Date: Sun Feb 19 10:39:02 2006
New Revision: 42488
Modified:
python/branches/release24-maint/Modules/zipimport.c
Log:
Patch #1352711: make zipimport raise a complete IOError
Modified: python/branches/release24-maint/Modules/zipimport.c
==============================================================================
--- python/branches/release24-maint/Modules/zipimport.c (original)
+++ python/branches/release24-maint/Modules/zipimport.c Sun Feb 19 10:39:02 2006
@@ -434,8 +434,7 @@
toc_entry = PyDict_GetItemString(self->files, path);
if (toc_entry == NULL) {
- PyErr_Format(PyExc_IOError, "file not found [%.200s]",
- path);
+ PyErr_SetFromErrnoWithFilename(PyExc_IOError, path);
return NULL;
}
return get_data(PyString_AsString(self->archive), toc_entry);
More information about the Python-checkins
mailing list