From 658cadb7624ffbe495ef76ebd1cc674fd36bfbcb Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 20 Jan 2014 10:45:07 +0000 Subject: Fix https://labs.riseup.net/code/issues/6609 Fix "MAT's GUI traceback when cleaning files" --- MAT/archive.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'MAT') diff --git a/MAT/archive.py b/MAT/archive.py index 4e24316..3c6a139 100644 --- a/MAT/archive.py +++ b/MAT/archive.py @@ -76,8 +76,7 @@ class ZipStripper(GenericArchiveStripper): of all non-supported/archives files contained in the archive. ''' - if list_unsupported: - ret_list = [] + ret_list = [] zipin = zipfile.ZipFile(self.filename, 'r') if zipin.comment != '' and not list_unsupported: logging.debug('%s has a comment' % self.filename) @@ -253,8 +252,7 @@ class TarStripper(GenericArchiveStripper): of all non-supported/archives files contained in the archive. ''' - if list_unsupported: - ret_list = [] + ret_list = [] tarin = tarfile.open(self.filename, 'r' + self.compression) for item in tarin.getmembers(): if not self.is_file_clean(item) and not list_unsupported: -- cgit v1.3