diff options
| author | jvoisin | 2011-08-05 13:30:34 +0200 |
|---|---|---|
| committer | jvoisin | 2011-08-05 13:30:34 +0200 |
| commit | 4b4c34d561c4ba81274c861de47c9807dbe76ca8 (patch) | |
| tree | 28c5d17b07af292a31ee1fdb356a527119b8dcb3 /lib/mat.py | |
| parent | 52c074ffb9dbefe5f967385770246d8df237ce5e (diff) | |
Cleanup, and cosmetic
Diffstat (limited to 'lib/mat.py')
| -rw-r--r-- | lib/mat.py | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -33,8 +33,8 @@ STRIPPERS = { | |||
| 33 | 'audio/mpeg': audio.MpegAudioStripper, | 33 | 'audio/mpeg': audio.MpegAudioStripper, |
| 34 | 'image/jpeg': images.JpegStripper, | 34 | 'image/jpeg': images.JpegStripper, |
| 35 | 'image/png': images.PngStripper, | 35 | 'image/png': images.PngStripper, |
| 36 | 'application/vnd.oasis.opendocument': office.OpenDocumentStripper, | 36 | 'application/opendocument': office.OpenDocumentStripper, |
| 37 | 'application/vnd.openxmlformats-officedocument': office.OpenXmlStripper, | 37 | 'application/officeopenxml': office.OpenXmlStripper, |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | try: | 40 | try: |
| @@ -146,9 +146,9 @@ def create_class_file(name, backup, add2archive): | |||
| 146 | mime = mimetypes.guess_type(name)[0] | 146 | mime = mimetypes.guess_type(name)[0] |
| 147 | 147 | ||
| 148 | if mime.startswith('application/vnd.oasis.opendocument'): | 148 | if mime.startswith('application/vnd.oasis.opendocument'): |
| 149 | mime = 'application/vnd.oasis.opendocument' # opendocument fileformat | 149 | mime = 'application/opendocument' # opendocument fileformat |
| 150 | elif mime.startswith('application/vnd.openxmlformats-officedocument'): | 150 | elif mime.startswith('application/vnd.openxmlformats-officedocument'): |
| 151 | mime = 'application/vnd.openxmlformats-officedocument' | 151 | mime = 'application/officeopenxml' # office openxml |
| 152 | 152 | ||
| 153 | try: | 153 | try: |
| 154 | stripper_class = STRIPPERS[mime] | 154 | stripper_class = STRIPPERS[mime] |
