diff options
| -rw-r--r-- | MAT/archive.py | 6 |
1 files changed, 2 insertions, 4 deletions
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): | |||
| 76 | of all non-supported/archives files contained in the | 76 | of all non-supported/archives files contained in the |
| 77 | archive. | 77 | archive. |
| 78 | ''' | 78 | ''' |
| 79 | if list_unsupported: | 79 | ret_list = [] |
| 80 | ret_list = [] | ||
| 81 | zipin = zipfile.ZipFile(self.filename, 'r') | 80 | zipin = zipfile.ZipFile(self.filename, 'r') |
| 82 | if zipin.comment != '' and not list_unsupported: | 81 | if zipin.comment != '' and not list_unsupported: |
| 83 | logging.debug('%s has a comment' % self.filename) | 82 | logging.debug('%s has a comment' % self.filename) |
| @@ -253,8 +252,7 @@ class TarStripper(GenericArchiveStripper): | |||
| 253 | of all non-supported/archives files contained in the | 252 | of all non-supported/archives files contained in the |
| 254 | archive. | 253 | archive. |
| 255 | ''' | 254 | ''' |
| 256 | if list_unsupported: | 255 | ret_list = [] |
| 257 | ret_list = [] | ||
| 258 | tarin = tarfile.open(self.filename, 'r' + self.compression) | 256 | tarin = tarfile.open(self.filename, 'r' + self.compression) |
| 259 | for item in tarin.getmembers(): | 257 | for item in tarin.getmembers(): |
| 260 | if not self.is_file_clean(item) and not list_unsupported: | 258 | if not self.is_file_clean(item) and not list_unsupported: |
