diff options
| author | jvoisin | 2018-10-25 11:56:46 +0200 |
|---|---|---|
| committer | jvoisin | 2018-10-25 11:56:46 +0200 |
| commit | 3a070b0ab70c4d4a456bdd12d0cd490ad127e320 (patch) | |
| tree | 2a6e5a913136a49e9a70393fa030ea4eb67cbab0 /libmat2/archive.py | |
| parent | 283e5e57877b21e34eb4612d3201c2e0682190d5 (diff) | |
Add support for zip files
Diffstat (limited to 'libmat2/archive.py')
| -rw-r--r-- | libmat2/archive.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libmat2/archive.py b/libmat2/archive.py index b4700c3..bcf8d33 100644 --- a/libmat2/archive.py +++ b/libmat2/archive.py | |||
| @@ -157,3 +157,8 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser): | |||
| 157 | os.remove(self.output_filename) | 157 | os.remove(self.output_filename) |
| 158 | return False | 158 | return False |
| 159 | return True | 159 | return True |
| 160 | |||
| 161 | |||
| 162 | |||
| 163 | class ZipParser(ArchiveBasedAbstractParser): | ||
| 164 | mimetypes = {'application/zip'} | ||
