diff options
| author | jvoisin | 2018-06-21 23:07:21 +0200 |
|---|---|---|
| committer | jvoisin | 2018-06-21 23:07:21 +0200 |
| commit | 846a261465a95a594e9bfc5398cf09fd5deb437f (patch) | |
| tree | ac02e1e7fb9dc08885947ab2de92e2b873dba77c | |
| parent | 09e748fa4c1785ba8a21ccac13bb693555d6c57b (diff) | |
Fix some linter warnings
| -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 |
