if (fseek(fp, -22, SEEK_END) == -1) {
fclose(fp);
- PyErr_Format(ZipImportError, "can't read Zip file: %R", archive);
+ PyErr_Format(ZipImportError, "can't read Zip file: %U", archive_obj);
return NULL;
}
header_position = ftell(fp);
fclose(fp);
Py_XDECREF(files);
Py_XDECREF(nameobj);
- PyErr_Format(ZipImportError, "can't read Zip file: %R", archive);
+ PyErr_Format(ZipImportError, "can't read Zip file: %U", archive_obj);
return NULL;
error:
fclose(fp);
/* Check to make sure the local file header is correct */
if (fseek(fp, file_offset, 0) == -1) {
fclose(fp);
- PyErr_Format(ZipImportError, "can't read Zip file: %R", archive);
+ PyErr_Format(ZipImportError, "can't read Zip file: %U", archive);
return NULL;
}
}
if (fseek(fp, file_offset + 26, 0) == -1) {
fclose(fp);
- PyErr_Format(ZipImportError, "can't read Zip file: %R", archive);
+ PyErr_Format(ZipImportError, "can't read Zip file: %U", archive);
return NULL;
}
bytes_read = fread(buf, 1, data_size, fp);
} else {
fclose(fp);
- PyErr_Format(ZipImportError, "can't read Zip file: %R", archive);
+ PyErr_Format(ZipImportError, "can't read Zip file: %U", archive);
return NULL;
}
fclose(fp);