diff options
| -rw-r--r-- | libmat/archive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmat/archive.py b/libmat/archive.py index ca80161..ad9fdc9 100644 --- a/libmat/archive.py +++ b/libmat/archive.py | |||
| @@ -104,7 +104,7 @@ class ZipStripper(GenericArchiveStripper): | |||
| 104 | return False | 104 | return False |
| 105 | else: | 105 | else: |
| 106 | logging.info('%s\'s fileformat is not supported or harmless.', item.filename) | 106 | logging.info('%s\'s fileformat is not supported or harmless.', item.filename) |
| 107 | basename, ext = os.path.splitext(path) | 107 | _, ext = os.path.splitext(path) |
| 108 | if os.path.basename(item.filename) not in ('mimetype', '.rels'): | 108 | if os.path.basename(item.filename) not in ('mimetype', '.rels'): |
| 109 | if ext not in parser.NOMETA: | 109 | if ext not in parser.NOMETA: |
| 110 | if not list_unsupported: | 110 | if not list_unsupported: |
| @@ -188,7 +188,7 @@ class ZipStripper(GenericArchiveStripper): | |||
| 188 | logging.debug('Processing %s from %s', item.filename, self.filename) | 188 | logging.debug('Processing %s from %s', item.filename, self.filename) |
| 189 | elif item.filename not in whitelist: | 189 | elif item.filename not in whitelist: |
| 190 | logging.info("%s's format is not supported or harmless", item.filename) | 190 | logging.info("%s's format is not supported or harmless", item.filename) |
| 191 | basename, ext = os.path.splitext(path) | 191 | _, ext = os.path.splitext(path) |
| 192 | if not (self.add2archive or ext in parser.NOMETA): | 192 | if not (self.add2archive or ext in parser.NOMETA): |
| 193 | continue | 193 | continue |
| 194 | zinfo = zipfile.ZipInfo(item.filename, date_time=ZIP_EPOCH) | 194 | zinfo = zipfile.ZipInfo(item.filename, date_time=ZIP_EPOCH) |
