diff options
| author | jvoisin | 2018-09-24 20:15:07 +0200 |
|---|---|---|
| committer | jvoisin | 2018-09-24 20:15:07 +0200 |
| commit | 719cdf20fa8c9921b81eaf6bf3df0d50c790de82 (patch) | |
| tree | 2da79f90984aee0bdcd5036c0608d463cc1a07f4 /libmat2/office.py | |
| parent | 2e243355f51654c8c6392c80a17b090f9f012fd1 (diff) | |
Second pass of minor formatting
Diffstat (limited to 'libmat2/office.py')
| -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 c6b324b..bad352b 100644 --- a/libmat2/office.py +++ b/libmat2/office.py | |||
| @@ -138,7 +138,7 @@ class MSOfficeParser(ArchiveBasedAbstractParser): | |||
| 138 | 138 | ||
| 139 | elements = list() | 139 | elements = list() |
| 140 | for element in tree.iterfind('.//w:ins', namespace): | 140 | for element in tree.iterfind('.//w:ins', namespace): |
| 141 | for position, item in enumerate(tree.iter()): #pragma: no cover | 141 | for position, item in enumerate(tree.iter()): # pragma: no cover |
| 142 | if item == element: | 142 | if item == element: |
| 143 | for children in element.iterfind('./*'): | 143 | for children in element.iterfind('./*'): |
| 144 | elements.append((element, position, children)) | 144 | elements.append((element, position, children)) |
| @@ -212,7 +212,6 @@ class LibreOfficeParser(ArchiveBasedAbstractParser): | |||
| 212 | '^Thumbnails/', | 212 | '^Thumbnails/', |
| 213 | })) | 213 | })) |
| 214 | 214 | ||
| 215 | |||
| 216 | @staticmethod | 215 | @staticmethod |
| 217 | def __remove_revisions(full_path: str) -> bool: | 216 | def __remove_revisions(full_path: str) -> bool: |
| 218 | try: | 217 | try: |
