summaryrefslogtreecommitdiff
path: root/MAT/office.py
diff options
context:
space:
mode:
Diffstat (limited to 'MAT/office.py')
-rw-r--r--MAT/office.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/MAT/office.py b/MAT/office.py
index 97405b3..e4b9567 100644
--- a/MAT/office.py
+++ b/MAT/office.py
@@ -1,4 +1,5 @@
1''' Care about office's formats 1''' Care about office's formats
2
2''' 3'''
3 4
4import logging 5import logging
@@ -19,7 +20,7 @@ import parser
19import archive 20import archive
20 21
21 22
22class OpenDocumentStripper(archive.ZipStripper): 23class OpenDocumentStripper(archive.TerminalZipStripper):
23 ''' An open document file is a zip, with xml file into. 24 ''' An open document file is a zip, with xml file into.
24 The one that interest us is meta.xml 25 The one that interest us is meta.xml
25 ''' 26 '''
@@ -68,7 +69,7 @@ class OpenDocumentStripper(archive.ZipStripper):
68 return False 69 return False
69 70
70 71
71class OpenXmlStripper(archive.ZipStripper): 72class OpenXmlStripper(archive.TerminalZipStripper):
72 ''' Represent an office openxml document, which is like 73 ''' Represent an office openxml document, which is like
73 an opendocument format, with some tricky stuff added. 74 an opendocument format, with some tricky stuff added.
74 It contains mostly xml, but can have media blobs, crap, ... 75 It contains mostly xml, but can have media blobs, crap, ...