diff options
| author | jvoisin | 2011-06-15 17:45:03 +0200 |
|---|---|---|
| committer | jvoisin | 2011-06-15 17:45:03 +0200 |
| commit | e9795577892e7a5d27d2faeb844045cc28990ee7 (patch) | |
| tree | 09807a23522a0eecdf225157a23b40f572a66a48 | |
| parent | fe2b911cb1ce8969f0a0be65eead90d56710bb52 (diff) | |
First (little) implementation of _should_remove() for jpeg, and png file
Diffstat (limited to '')
| -rwxr-xr-x | mat.py | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -98,10 +98,17 @@ class file(): | |||
| 98 | 98 | ||
| 99 | class JpegStripper(file): | 99 | class JpegStripper(file): |
| 100 | def _should_remove(self, key): | 100 | def _should_remove(self, key): |
| 101 | return False | 101 | if key in ('comment', 'author'): |
| 102 | return True | ||
| 103 | else: | ||
| 104 | return False | ||
| 102 | 105 | ||
| 103 | class PngStripper(file): | 106 | class PngStripper(file): |
| 104 | def _should_remove(self, key): | 107 | def _should_remove(self, key): |
| 108 | if key in ('comment', 'author'): | ||
| 109 | return True | ||
| 110 | else: | ||
| 111 | return False | ||
| 105 | return False | 112 | return False |
| 106 | 113 | ||
| 107 | strippers = { | 114 | strippers = { |
