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/images.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/images.py') diff --git a/lib/images.py b/lib/images.py index df3d256..9fa9999 100644 --- a/lib/images.py +++ b/lib/images.py @@ -1,3 +1,7 @@ +''' + Takes care about pictures formats +''' + import parser @@ -6,6 +10,9 @@ class JpegStripper(parser.GenericParser): Represents a .jpeg file ''' def _should_remove(self, field): + ''' + return True if the field is compromizing + ''' if field.name.startswith('comment'): return True elif field.name in ("photoshop", "exif", "adobe"): @@ -19,6 +26,9 @@ class PngStripper(parser.GenericParser): Represents a .png file ''' def _should_remove(self, field): + ''' + return True if the field is compromizing + ''' if field.name.startswith("text["): return True elif field.name is "time": -- cgit v1.3