1
0
mirror of synced 2024-11-22 09:14:23 +01:00

Document the previous commit

This commit is contained in:
jvoisin 2019-02-25 15:37:44 +01:00
parent 545dccc352
commit eb2e702f37

View File

@ -118,6 +118,8 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
items = list() # type: List[zipfile.ZipInfo] items = list() # type: List[zipfile.ZipInfo]
for item in sorted(zin.infolist(), key=lambda z: z.filename): for item in sorted(zin.infolist(), key=lambda z: z.filename):
# Some fileformats do require to have the `mimetype` file
# as the first file in the archive.
if item.filename == 'mimetype': if item.filename == 'mimetype':
items = [item] + items items = [item] + items
else: else: