summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmat2/office.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/libmat2/office.py b/libmat2/office.py
index 6ab7e80..6831839 100644
--- a/libmat2/office.py
+++ b/libmat2/office.py
@@ -102,8 +102,7 @@ class MSOfficeParser(ArchiveBasedAbstractParser):
102 if item.filename[-1] == '/': 102 if item.filename[-1] == '/':
103 continue # `is_dir` is added in Python3.6 103 continue # `is_dir` is added in Python3.6
104 elif item.filename.startswith('docProps/'): 104 elif item.filename.startswith('docProps/'):
105 if not item.filename.endswith('.rels'): 105 continue # don't keep metadata files
106 continue # don't keep metadata files
107 if item.filename in self.files_to_keep: 106 if item.filename in self.files_to_keep:
108 item = self._clean_zipinfo(item) 107 item = self._clean_zipinfo(item)
109 zout.writestr(item, zin.read(item)) 108 zout.writestr(item, zin.read(item))