Minor code simplification
This commit is contained in:
parent
7dad77a785
commit
545887af98
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user