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/mat.py | |
| parent | 7c9edd6514854f707b87e150a1ffa327ebd8dcac (diff) | |
Bugfixes (especially for pdf), and more pylint conformity
Diffstat (limited to 'lib/mat.py')
| -rw-r--r-- | lib/mat.py | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -25,7 +25,7 @@ LOGGING_LEVEL = logging.DEBUG | |||
| 25 | 25 | ||
| 26 | logging.basicConfig(level=LOGGING_LEVEL) | 26 | logging.basicConfig(level=LOGGING_LEVEL) |
| 27 | 27 | ||
| 28 | strippers = { | 28 | STRIPPERS = { |
| 29 | hachoir_parser.image.JpegFile: images.JpegStripper, | 29 | hachoir_parser.image.JpegFile: images.JpegStripper, |
| 30 | hachoir_parser.image.PngFile: images.PngStripper, | 30 | hachoir_parser.image.PngFile: images.PngStripper, |
| 31 | hachoir_parser.audio.MpegAudioFile: audio.MpegAudioStripper, | 31 | hachoir_parser.audio.MpegAudioFile: audio.MpegAudioStripper, |
| @@ -83,7 +83,7 @@ def create_class_file(name, backup, add2archive): | |||
| 83 | (which herits from the "file" class), based on the editor | 83 | (which herits from the "file" class), based on the editor |
| 84 | of given file (name) | 84 | of given file (name) |
| 85 | ''' | 85 | ''' |
| 86 | stripper_class = strippers[editor.input.__class__] | 86 | stripper_class = STRIPPERS[editor.input.__class__] |
| 87 | except KeyError: | 87 | except KeyError: |
| 88 | #Place for another lib than hachoir | 88 | #Place for another lib than hachoir |
| 89 | logging.info('Don\'t have stripper for format %s' % editor.description) | 89 | logging.info('Don\'t have stripper for format %s' % editor.description) |
