From 3696b59badfef2438a3df1755868b2aeeb443b87 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 30 Dec 2015 17:15:23 +0100 Subject: Fix some pep8-related issues --- libmat/archive.py | 5 +++++ libmat/mat.py | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'libmat') diff --git a/libmat/archive.py b/libmat/archive.py index 61028ef..a662e61 100644 --- a/libmat/archive.py +++ b/libmat/archive.py @@ -47,6 +47,11 @@ class GenericArchiveStripper(parser.GenericParser): """ return self.is_clean(list_unsupported=True) + def remove_all(self): + """ Virtual method to remove all compromising fields + """ + raise NotImplementedError + class ZipStripper(GenericArchiveStripper): """ Represent a zip file diff --git a/libmat/mat.py b/libmat/mat.py index e84c717..d397334 100644 --- a/libmat/mat.py +++ b/libmat/mat.py @@ -84,6 +84,8 @@ class XMLParser(xml.sax.handler.ContentHandler): # pragma: no cover def startElement(self, name, attrs): """ Called when entering into xml tag + :param attrs: Attributes of the `nam` xml tag + :param name: Name of the xml tag """ self.between = True self.key = name @@ -91,6 +93,7 @@ class XMLParser(xml.sax.handler.ContentHandler): # pragma: no cover def endElement(self, name): """ Called when exiting a xml tag + :param name: name of the element """ if name == 'format': # leaving a fileformat section self.list.append(self.dict.copy()) @@ -102,6 +105,7 @@ class XMLParser(xml.sax.handler.ContentHandler): # pragma: no cover def characters(self, characters): """ Concatenate the content between opening and closing tags + :param characters: content of the tag """ if self.between: self.content += characters -- cgit v1.3