From 4bd3e47da02fde08acfada1795cc55170abdb00a Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 16 Aug 2011 18:11:24 +0200 Subject: setup.py now works ! --- lib/images.py | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 lib/images.py (limited to 'lib/images.py') diff --git a/lib/images.py b/lib/images.py deleted file mode 100644 index d090015..0000000 --- a/lib/images.py +++ /dev/null @@ -1,37 +0,0 @@ -''' - Takes care about pictures formats -''' - -import parser - - -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"): - return True - else: - return False - - -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": - return True - else: - return False -- cgit v1.3