summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmat/archive.py8
-rw-r--r--test/clean é.docxbin2300 -> 2300 bytes
-rw-r--r--test/clean é.odtbin10907 -> 10907 bytes
-rw-r--r--test/clean é.zipbin5747 -> 5747 bytes
4 files changed, 6 insertions, 2 deletions
diff --git a/libmat/archive.py b/libmat/archive.py
index 7a71717..8a3fee9 100644
--- a/libmat/archive.py
+++ b/libmat/archive.py
@@ -1,7 +1,6 @@
1""" Take care of archives formats 1""" Take care of archives formats
2""" 2"""
3 3
4import datetime
5import logging 4import logging
6import os 5import os
7import shutil 6import shutil
@@ -14,7 +13,7 @@ import mat
14import parser 13import parser
15 14
16# Zip files do not support dates older than 01/01/1980 15# Zip files do not support dates older than 01/01/1980
17ZIP_EPOCH = (1980, 1, 1, 1, 0, 0) 16ZIP_EPOCH = (1980, 1, 1, 0, 0, 0)
18 17
19 18
20class GenericArchiveStripper(parser.GenericParser): 19class GenericArchiveStripper(parser.GenericParser):
@@ -38,6 +37,11 @@ class GenericArchiveStripper(parser.GenericParser):
38 mat.secure_remove(path_file) 37 mat.secure_remove(path_file)
39 shutil.rmtree(self.tempdir) 38 shutil.rmtree(self.tempdir)
40 39
40 def _should_remove(self, key):
41 """ This method is not used, but since it's defined in
42 parser.GenericParser, we must implement it."""
43 pass
44
41 def is_clean(self, list_unsupported=False): 45 def is_clean(self, list_unsupported=False):
42 """ Virtual method to check for harmul metadata 46 """ Virtual method to check for harmul metadata
43 """ 47 """
diff --git a/test/clean é.docx b/test/clean é.docx
index 727084e..9f450fc 100644
--- a/test/clean é.docx
+++ b/test/clean é.docx
Binary files differ
diff --git a/test/clean é.odt b/test/clean é.odt
index 94032e8..1a54b92 100644
--- a/test/clean é.odt
+++ b/test/clean é.odt
Binary files differ
diff --git a/test/clean é.zip b/test/clean é.zip
index c28f424..22b9f78 100644
--- a/test/clean é.zip
+++ b/test/clean é.zip
Binary files differ