diff options
| -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 = { |
