From 73e80a3859da461ca363cde6c4ab050e53159362 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 3 Aug 2011 13:48:09 +0200 Subject: Now, the MAT should run perfectly on Tails ! --- lib/office.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/office.py') diff --git a/lib/office.py b/lib/office.py index ba12295..e21805a 100644 --- a/lib/office.py +++ b/lib/office.py @@ -5,9 +5,7 @@ import os import logging import zipfile -import re import fileinput -from xml.etree import ElementTree try: import cairo @@ -36,10 +34,7 @@ class OpenDocumentStripper(archive.GenericArchiveStripper): try: content = zipin.read('meta.xml') zipin.close() - tree = ElementTree.fromstring(content) - for node in tree.iter(): - key = re.sub('{.*}', '', node.tag) - metadata[key] = node.text + metadata[self.filename] = 'harful meta' except KeyError: # no meta.xml file found logging.debug('%s has no opendocument metadata' % self.filename) return metadata -- cgit v1.3