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

Minor code simplification

parent 7dad77a7
No related branches found
No related tags found
No related merge requests found
......@@ -102,8 +102,7 @@ class MSOfficeParser(ArchiveBasedAbstractParser):
if item.filename[-1] == '/':
continue # `is_dir` is added in Python3.6
elif item.filename.startswith('docProps/'):
if not item.filename.endswith('.rels'):
continue # don't keep metadata files
continue # don't keep metadata files
if item.filename in self.files_to_keep:
item = self._clean_zipinfo(item)
zout.writestr(item, zin.read(item))
......
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