From 5715ba52f2238af513b0b87f4aa3c0158d2c84ba Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 30 Jul 2011 21:47:31 +0200 Subject: Documentation, and removal of unnecessary imports --- lib/parser.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/parser.py') diff --git a/lib/parser.py b/lib/parser.py index 385dd78..044ef0a 100644 --- a/lib/parser.py +++ b/lib/parser.py @@ -6,7 +6,6 @@ import hachoir_core import hachoir_editor import os -import mimetypes import mat @@ -14,6 +13,9 @@ NOMETA = ('.bmp', 'html', '.py', '.rdf', '.txt', '.xml') class GenericParser(object): + ''' + Parent class of all parsers + ''' def __init__(self, filename, parser, mime, backup, add2archive): self.filename = '' self.parser = parser @@ -30,7 +32,6 @@ class GenericParser(object): self.basename = os.path.basename(filename) # only filename - def is_clean(self): ''' Check if the file is clean from harmful metadatas @@ -68,7 +69,7 @@ class GenericParser(object): def get_meta(self): ''' - return a dict with all the meta of the file + Return a dict with all the meta of the file ''' metadata = {} for field in self.editor: -- cgit v1.3