diff options
| -rw-r--r-- | libmat2/office.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libmat2/office.py b/libmat2/office.py index fd3cdf4..a5a49cf 100644 --- a/libmat2/office.py +++ b/libmat2/office.py | |||
| @@ -8,10 +8,13 @@ from typing import Dict, Set, Pattern | |||
| 8 | 8 | ||
| 9 | from . import abstract, parser_factory | 9 | from . import abstract, parser_factory |
| 10 | 10 | ||
| 11 | # Make pyflakes happy | ||
| 12 | assert Set | ||
| 13 | assert Pattern | ||
| 11 | 14 | ||
| 12 | class ArchiveBasedAbstractParser(abstract.AbstractParser): | 15 | class ArchiveBasedAbstractParser(abstract.AbstractParser): |
| 13 | files_to_keep : Set[str] = set() | 16 | files_to_keep = set() # type: Set[str] |
| 14 | files_to_omit : Set[Pattern] = set() | 17 | files_to_omit = set() # type: Set[Pattern] |
| 15 | 18 | ||
| 16 | def _clean_zipinfo(self, zipinfo: zipfile.ZipInfo) -> zipfile.ZipInfo: | 19 | def _clean_zipinfo(self, zipinfo: zipfile.ZipInfo) -> zipfile.ZipInfo: |
| 17 | zipinfo.create_system = 3 # Linux | 20 | zipinfo.create_system = 3 # Linux |
