From cb3dfd99998bd71b17d948b1bd88d5757f9cdab3 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 16 Jul 2013 11:49:37 +0200 Subject: Format + remove useless comment in archive.py --- MAT/archive.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/MAT/archive.py b/MAT/archive.py index 74100a9..59629ac 100644 --- a/MAT/archive.py +++ b/MAT/archive.py @@ -10,7 +10,6 @@ import tempfile import parser import mat -#from tarfile import tarfile import tarfile @@ -67,8 +66,8 @@ class ZipStripper(GenericArchiveStripper): logging.debug('%s has a comment' % self.filename) return False for item in zipin.infolist(): - #I have not found a way to remove the crap added by zipfile :/ - #if not self.is_file_clean(item): + # I have not found a way to remove the crap added by zipfile :/ + # if not self.is_file_clean(item): # logging.debug('%s from %s has compromizing zipinfo' % # (item.filename, self.filename)) # return False @@ -81,7 +80,7 @@ class ZipStripper(GenericArchiveStripper): if not cfile.is_clean(): return False except: - #best solution I have found + # best solution I have found logging.info('%s\'s fileformat is not supported, or is a \ harmless format' % item.filename) _, ext = os.path.splitext(name) @@ -166,7 +165,7 @@ class TarStripper(GenericArchiveStripper): tarin.extract(item, self.tempdir) name = os.path.join(self.tempdir, item.name) if item.type == '0': # is item a regular file ? - #no backup file + # no backup file try: cfile = mat.create_class_file(name, False, add2archive=self.add2archive) -- cgit v1.3