diff options
| author | jvoisin | 2011-08-16 18:11:24 +0200 |
|---|---|---|
| committer | jvoisin | 2011-08-16 18:11:24 +0200 |
| commit | 4bd3e47da02fde08acfada1795cc55170abdb00a (patch) | |
| tree | f8c7aa5fd5e1b07a28b350c5ded8125ef2467c51 /lib/images.py | |
| parent | baf8e080125614326ba9c96ca8f2404fd12b050e (diff) | |
setup.py now works !
Diffstat (limited to 'lib/images.py')
| -rw-r--r-- | lib/images.py | 37 |
1 files changed, 0 insertions, 37 deletions
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 @@ | |||
| 1 | ''' | ||
| 2 | Takes care about pictures formats | ||
| 3 | ''' | ||
| 4 | |||
| 5 | import parser | ||
| 6 | |||
| 7 | |||
| 8 | class JpegStripper(parser.GenericParser): | ||
| 9 | ''' | ||
| 10 | represents a jpeg file | ||
| 11 | ''' | ||
| 12 | def _should_remove(self, field): | ||
| 13 | ''' | ||
| 14 | return True if the field is compromizing | ||
| 15 | ''' | ||
| 16 | if field.name.startswith('comment'): | ||
| 17 | return True | ||
| 18 | elif field.name in ("photoshop", "exif", "adobe"): | ||
| 19 | return True | ||
| 20 | else: | ||
| 21 | return False | ||
| 22 | |||
| 23 | |||
| 24 | class PngStripper(parser.GenericParser): | ||
| 25 | ''' | ||
| 26 | represents a png file | ||
| 27 | ''' | ||
| 28 | def _should_remove(self, field): | ||
| 29 | ''' | ||
| 30 | return True if the field is compromizing | ||
| 31 | ''' | ||
| 32 | if field.name.startswith("text["): | ||
| 33 | return True | ||
| 34 | elif field.name is "time": | ||
| 35 | return True | ||
| 36 | else: | ||
| 37 | return False | ||
