Commit 545887af authored by jvoisin's avatar jvoisin
Browse files

Minor code simplification

parent 7dad77a7
......@@ -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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment