summaryrefslogtreecommitdiff
path: root/MAT/archive.py
diff options
context:
space:
mode:
authorjvoisin2014-01-31 03:54:28 +0000
committerjvoisin2014-01-31 03:54:28 +0000
commit173449009769ce86493a179acb9c66c87125dce3 (patch)
tree8cc035901c9cc254370e74514c2f9a7dcee1b48c /MAT/archive.py
parent1ca20db6741dabfbad567aa20bee92069a5ef5c7 (diff)
Fix office-format handling by the GUI
Diffstat (limited to 'MAT/archive.py')
-rw-r--r--MAT/archive.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/MAT/archive.py b/MAT/archive.py
index 3c6a139..62f4ca7 100644
--- a/MAT/archive.py
+++ b/MAT/archive.py
@@ -39,7 +39,7 @@ class GenericArchiveStripper(parser.GenericParser):
39 mat.secure_remove(path_file) 39 mat.secure_remove(path_file)
40 shutil.rmtree(self.tempdir) 40 shutil.rmtree(self.tempdir)
41 41
42 def is_clean(self, list_unsupported): 42 def is_clean(self, list_unsupported=False):
43 ''' Virtual method to check for harmul metadata 43 ''' Virtual method to check for harmul metadata
44 ''' 44 '''
45 raise NotImplementedError 45 raise NotImplementedError
@@ -312,6 +312,14 @@ class TarStripper(GenericArchiveStripper):
312 return metadata 312 return metadata
313 313
314 314
315class TerminalZipStripper(ZipStripper):
316 ''' Represent a terminal level archive.
317 This type of archive can not contain nested archives.
318 It is used for formats like docx, which are basically
319 ziped xml.
320 '''
321
322
315class GzipStripper(TarStripper): 323class GzipStripper(TarStripper):
316 ''' Represent a tar.gz archive 324 ''' Represent a tar.gz archive
317 ''' 325 '''