diff options
Diffstat (limited to 'libmat2/office.py')
| -rw-r--r-- | libmat2/office.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmat2/office.py b/libmat2/office.py index 87a0b7e..f0ab404 100644 --- a/libmat2/office.py +++ b/libmat2/office.py | |||
| @@ -148,7 +148,7 @@ class MSOfficeParser(ZipParser): | |||
| 148 | return False | 148 | return False |
| 149 | xml_data = zin.read('[Content_Types].xml') | 149 | xml_data = zin.read('[Content_Types].xml') |
| 150 | 150 | ||
| 151 | self.content_types = dict() # type: dict[str, str] | 151 | self.content_types = dict() # type: Dict[str, str] |
| 152 | try: | 152 | try: |
| 153 | tree = ET.fromstring(xml_data) | 153 | tree = ET.fromstring(xml_data) |
| 154 | except ET.ParseError: | 154 | except ET.ParseError: |
| @@ -429,7 +429,7 @@ class MSOfficeParser(ZipParser): | |||
| 429 | 429 | ||
| 430 | return True | 430 | return True |
| 431 | 431 | ||
| 432 | def _specific_get_meta(self, full_path: str, file_path: str) -> dict[str, Any]: | 432 | def _specific_get_meta(self, full_path: str, file_path: str) -> Dict[str, Any]: |
| 433 | """ | 433 | """ |
| 434 | Yes, I know that parsing xml with regexp ain't pretty, | 434 | Yes, I know that parsing xml with regexp ain't pretty, |
| 435 | be my guest and fix it if you want. | 435 | be my guest and fix it if you want. |
| @@ -509,7 +509,7 @@ class LibreOfficeParser(ZipParser): | |||
| 509 | return False | 509 | return False |
| 510 | return True | 510 | return True |
| 511 | 511 | ||
| 512 | def _specific_get_meta(self, full_path: str, file_path: str) -> dict[str, Any]: | 512 | def _specific_get_meta(self, full_path: str, file_path: str) -> Dict[str, Any]: |
| 513 | """ | 513 | """ |
| 514 | Yes, I know that parsing xml with regexp ain't pretty, | 514 | Yes, I know that parsing xml with regexp ain't pretty, |
| 515 | be my guest and fix it if you want. | 515 | be my guest and fix it if you want. |
