summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2011-06-15 17:45:03 +0200
committerjvoisin2011-06-15 17:45:03 +0200
commite9795577892e7a5d27d2faeb844045cc28990ee7 (patch)
tree09807a23522a0eecdf225157a23b40f572a66a48
parentfe2b911cb1ce8969f0a0be65eead90d56710bb52 (diff)
First (little) implementation of _should_remove() for jpeg, and png file
Diffstat (limited to '')
-rwxr-xr-xmat.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/mat.py b/mat.py
index a80f45a..cec4129 100755
--- a/mat.py
+++ b/mat.py
@@ -98,10 +98,17 @@ class file():
98 98
99class JpegStripper(file): 99class 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
103class PngStripper(file): 106class 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
107strippers = { 114strippers = {