1
0
mirror of synced 2024-11-25 18:54:22 +01:00

Minor code simplification

This commit is contained in:
jvoisin 2018-06-10 20:20:32 +02:00
parent 7dad77a785
commit 545887af98

View File

@ -102,7 +102,6 @@ class MSOfficeParser(ArchiveBasedAbstractParser):
if item.filename[-1] == '/': if item.filename[-1] == '/':
continue # `is_dir` is added in Python3.6 continue # `is_dir` is added in Python3.6
elif item.filename.startswith('docProps/'): 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: if item.filename in self.files_to_keep:
item = self._clean_zipinfo(item) item = self._clean_zipinfo(item)