summaryrefslogtreecommitdiff
path: root/libmat2
diff options
context:
space:
mode:
authorjvoisin2019-02-25 15:37:44 +0100
committerjvoisin2019-02-25 15:37:44 +0100
commiteb2e702f3700a0ac88d10a524a5f6c573a52a8dd (patch)
tree0f8d10a803229461d7c4e3503c7611730c24cd5b /libmat2
parent545dccc3527fcdf851b30b072ae6c7222b711777 (diff)
Document the previous commit
Diffstat (limited to 'libmat2')
-rw-r--r--libmat2/archive.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmat2/archive.py b/libmat2/archive.py
index 1ae3b45..aa1b24c 100644
--- a/libmat2/archive.py
+++ b/libmat2/archive.py
@@ -118,6 +118,8 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
118 118
119 items = list() # type: List[zipfile.ZipInfo] 119 items = list() # type: List[zipfile.ZipInfo]
120 for item in sorted(zin.infolist(), key=lambda z: z.filename): 120 for item in sorted(zin.infolist(), key=lambda z: z.filename):
121 # Some fileformats do require to have the `mimetype` file
122 # as the first file in the archive.
121 if item.filename == 'mimetype': 123 if item.filename == 'mimetype':
122 items = [item] + items 124 items = [item] + items
123 else: 125 else: