1
0
mirror of synced 2024-12-22 20:59:58 +01:00

Fix some linter warnings

This commit is contained in:
jvoisin 2018-06-21 23:07:21 +02:00
parent 09e748fa4c
commit 846a261465

View File

@ -8,10 +8,13 @@ from typing import Dict, Set, Pattern
from . import abstract, parser_factory
# Make pyflakes happy
assert Set
assert Pattern
class ArchiveBasedAbstractParser(abstract.AbstractParser):
files_to_keep : Set[str] = set()
files_to_omit : Set[Pattern] = set()
files_to_keep = set() # type: Set[str]
files_to_omit = set() # type: Set[Pattern]
def _clean_zipinfo(self, zipinfo: zipfile.ZipInfo) -> zipfile.ZipInfo:
zipinfo.create_system = 3 # Linux