From 4b56ff254ab45025de76c7a84e6a147691743afa Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 25 Nov 2015 19:38:28 +0100 Subject: Remove two useless variables --- libmat/archive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmat') 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): return False else: logging.info('%s\'s fileformat is not supported or harmless.', item.filename) - basename, ext = os.path.splitext(path) + _, ext = os.path.splitext(path) if os.path.basename(item.filename) not in ('mimetype', '.rels'): if ext not in parser.NOMETA: if not list_unsupported: @@ -188,7 +188,7 @@ class ZipStripper(GenericArchiveStripper): logging.debug('Processing %s from %s', item.filename, self.filename) elif item.filename not in whitelist: logging.info("%s's format is not supported or harmless", item.filename) - basename, ext = os.path.splitext(path) + _, ext = os.path.splitext(path) if not (self.add2archive or ext in parser.NOMETA): continue zinfo = zipfile.ZipInfo(item.filename, date_time=ZIP_EPOCH) -- cgit v1.3