Document the previous commit
This commit is contained in:
parent
545dccc352
commit
eb2e702f37
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user