summaryrefslogtreecommitdiff
path: root/lib/images.py
diff options
context:
space:
mode:
authorjvoisin2011-07-30 21:47:31 +0200
committerjvoisin2011-07-30 21:47:31 +0200
commit5715ba52f2238af513b0b87f4aa3c0158d2c84ba (patch)
treee77829efd78b1473650a669546c3c11edc37932c /lib/images.py
parentc9cb00bdf702ce6663e78784de63dc6d35c3d875 (diff)
Documentation, and removal of unnecessary imports
Diffstat (limited to 'lib/images.py')
-rw-r--r--lib/images.py10
1 files changed, 10 insertions, 0 deletions
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 @@
1'''
2 Takes care about pictures formats
3'''
4
1import parser 5import parser
2 6
3 7
@@ -6,6 +10,9 @@ class JpegStripper(parser.GenericParser):
6 Represents a .jpeg file 10 Represents a .jpeg file
7 ''' 11 '''
8 def _should_remove(self, field): 12 def _should_remove(self, field):
13 '''
14 return True if the field is compromizing
15 '''
9 if field.name.startswith('comment'): 16 if field.name.startswith('comment'):
10 return True 17 return True
11 elif field.name in ("photoshop", "exif", "adobe"): 18 elif field.name in ("photoshop", "exif", "adobe"):
@@ -19,6 +26,9 @@ class PngStripper(parser.GenericParser):
19 Represents a .png file 26 Represents a .png file
20 ''' 27 '''
21 def _should_remove(self, field): 28 def _should_remove(self, field):
29 '''
30 return True if the field is compromizing
31 '''
22 if field.name.startswith("text["): 32 if field.name.startswith("text["):
23 return True 33 return True
24 elif field.name is "time": 34 elif field.name is "time":