diff options
| author | jvoisin | 2012-12-20 18:08:44 +0100 |
|---|---|---|
| committer | jvoisin | 2012-12-20 18:08:44 +0100 |
| commit | ce6c61bd56b126742cc95435945c13bfa8671b28 (patch) | |
| tree | 8eb5a98a6598e9448c3cdc19a6999094f3a7b65f /MAT/mat.py | |
| parent | 6be21f0acb7c540fad89b6c0b9b54197a435238f (diff) | |
| parent | 893ce1a7ce01a1983b3605e424775df6500c2608 (diff) | |
Merge branch 'master' into gui_options
Conflicts:
mat-gui
Diffstat (limited to 'MAT/mat.py')
| -rw-r--r-- | MAT/mat.py | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -102,7 +102,7 @@ def secure_remove(filename): | |||
| 102 | logging.error('Unable to remove %s' % filename) | 102 | logging.error('Unable to remove %s' % filename) |
| 103 | 103 | ||
| 104 | 104 | ||
| 105 | def create_class_file(name, backup, add2archive): | 105 | def create_class_file(name, backup, **kwargs): |
| 106 | ''' | 106 | ''' |
| 107 | return a $FILETYPEStripper() class, | 107 | return a $FILETYPEStripper() class, |
| 108 | corresponding to the filetype of the given file | 108 | corresponding to the filetype of the given file |
| @@ -149,4 +149,7 @@ def create_class_file(name, backup, add2archive): | |||
| 149 | logging.info('Don\'t have stripper for %s format' % mime) | 149 | logging.info('Don\'t have stripper for %s format' % mime) |
| 150 | return None | 150 | return None |
| 151 | 151 | ||
| 152 | return stripper_class(filename, parser, mime, backup, add2archive) | 152 | if mime.endswith('pdf') and mime.startswith('application/'): |
| 153 | return stripper_class(filename, parser, mime, backup, **kwargs) | ||
| 154 | |||
| 155 | return stripper_class(filename, parser, mime, backup, **kwargs) | ||
