summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mat/parser.py5
-rw-r--r--test/clean.docxbin2619 -> 5842 bytes
-rw-r--r--test/clean.odtbin32777 -> 33304 bytes
-rw-r--r--test/clean.pdfbin11821 -> 11892 bytes
-rw-r--r--test/clean.tar.gzbin5820 -> 5817 bytes
-rw-r--r--test/clean.zipbin6041 -> 6041 bytes
6 files changed, 1 insertions, 4 deletions
diff --git a/mat/parser.py b/mat/parser.py
index 58dd7fa..edbdca1 100644
--- a/mat/parser.py
+++ b/mat/parser.py
@@ -96,9 +96,6 @@ class GenericParser(object):
96 Do a backup of the file if asked, 96 Do a backup of the file if asked,
97 and change his creation/access date 97 and change his creation/access date
98 ''' 98 '''
99 if self.backup is True: 99 if self.backup is False:
100 os.utime(self.output, (0, 0))
101 else:
102 mat.secure_remove(self.filename) 100 mat.secure_remove(self.filename)
103 os.rename(self.output, self.filename) 101 os.rename(self.output, self.filename)
104 os.utime(self.filename, (0, 0))
diff --git a/test/clean.docx b/test/clean.docx
index 0220399..0f1470c 100644
--- a/test/clean.docx
+++ b/test/clean.docx
Binary files differ
diff --git a/test/clean.odt b/test/clean.odt
index 56df472..e3781e0 100644
--- a/test/clean.odt
+++ b/test/clean.odt
Binary files differ
diff --git a/test/clean.pdf b/test/clean.pdf
index c95cfb0..01f3f30 100644
--- a/test/clean.pdf
+++ b/test/clean.pdf
Binary files differ
diff --git a/test/clean.tar.gz b/test/clean.tar.gz
index 458f179..c1d25f7 100644
--- a/test/clean.tar.gz
+++ b/test/clean.tar.gz
Binary files differ
diff --git a/test/clean.zip b/test/clean.zip
index f5db7ed..a34ca70 100644
--- a/test/clean.zip
+++ b/test/clean.zip
Binary files differ