diff options
| author | jvoisin | 2011-07-26 15:14:48 +0200 |
|---|---|---|
| committer | jvoisin | 2011-07-26 15:14:48 +0200 |
| commit | 962e9aec5ffcdaae39e06f277dd47d1943205c37 (patch) | |
| tree | 85d57c245f010579dc3eb9199fe3ed6e379e96d8 /lib/images.py | |
| parent | 7c9edd6514854f707b87e150a1ffa327ebd8dcac (diff) | |
Bugfixes (especially for pdf), and more pylint conformity
Diffstat (limited to 'lib/images.py')
| -rw-r--r-- | lib/images.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/images.py b/lib/images.py index bab0bfb..df3d256 100644 --- a/lib/images.py +++ b/lib/images.py | |||
| @@ -1,7 +1,10 @@ | |||
| 1 | import parser | 1 | import parser |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | class JpegStripper(parser.Generic_parser): | 4 | class JpegStripper(parser.GenericParser): |
| 5 | ''' | ||
| 6 | Represents a .jpeg file | ||
| 7 | ''' | ||
| 5 | def _should_remove(self, field): | 8 | def _should_remove(self, field): |
| 6 | if field.name.startswith('comment'): | 9 | if field.name.startswith('comment'): |
| 7 | return True | 10 | return True |
| @@ -11,7 +14,10 @@ class JpegStripper(parser.Generic_parser): | |||
| 11 | return False | 14 | return False |
| 12 | 15 | ||
| 13 | 16 | ||
| 14 | class PngStripper(parser.Generic_parser): | 17 | class PngStripper(parser.GenericParser): |
| 18 | ''' | ||
| 19 | Represents a .png file | ||
| 20 | ''' | ||
| 15 | def _should_remove(self, field): | 21 | def _should_remove(self, field): |
| 16 | if field.name.startswith("text["): | 22 | if field.name.startswith("text["): |
| 17 | return True | 23 | return True |
