diff options
| author | jvoisin | 2018-06-10 20:20:32 +0200 |
|---|---|---|
| committer | jvoisin | 2018-06-10 20:20:32 +0200 |
| commit | 545887af98ccd97157046a67ac542ec3bfdbdfdf (patch) | |
| tree | ef160b748cbfacb5ba606fa3d18199b30895e946 /libmat2 | |
| parent | 7dad77a7857990787551e99b2a09bdf908e67553 (diff) | |
Minor code simplification
Diffstat (limited to 'libmat2')
| -rw-r--r-- | libmat2/office.py | 3 |
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)) |
