Skip to content
Snippets Groups Projects
Commit eb2e702f authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Document the previous commit

parent 545dccc3
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,8 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
items = list() # type: List[zipfile.ZipInfo]
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':
items = [item] + items
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment