From 008cb53a98681ed1be8a1d2f767ecf50fba585bb Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 6 Aug 2011 22:43:17 +0200 Subject: Cleanup and more pylint conformity --- lib/mat.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/mat.py') diff --git a/lib/mat.py b/lib/mat.py index ad66d92..97a71ea 100644 --- a/lib/mat.py +++ b/lib/mat.py @@ -43,7 +43,8 @@ try: STRIPPERS['application/x-pdf'] = office.PdfStripper STRIPPERS['application/pdf'] = office.PdfStripper except ImportError: - print('Unable to import python-poppler and/or python-cairo: no pdf support') + print('Unable to import python-poppler and/or python-cairo: no pdf \ + support') try: import mutagen @@ -62,7 +63,7 @@ class XMLParser(xml.sax.handler.ContentHandler): self.dict = {} self.list = [] self.content, self.key = '', '' - self.between= False + self.between = False def startElement(self, name, attrs): ''' @@ -142,7 +143,7 @@ def create_class_file(name, backup, add2archive): mime = parser.mime_type - if mime == 'application/zip': # some formats are zipped stuff + if mime == 'application/zip': # some formats are zipped stuff mime = mimetypes.guess_type(name)[0] if mime.startswith('application/vnd.oasis.opendocument'): -- cgit v1.3