summaryrefslogtreecommitdiff
path: root/MAT/archive.py
diff options
context:
space:
mode:
authorjvoisin2013-07-16 12:42:47 +0200
committerjvoisin2013-07-16 12:42:47 +0200
commitfb0e2fa10b94b22a792e756e996b09436f472b0d (patch)
tree6e254445a133a824319f7e74aaa66991346110cb /MAT/archive.py
parentcd1405fc3994fda52d266811ff07f7021931df9d (diff)
Gramatical and spelling corrections
Diffstat (limited to 'MAT/archive.py')
-rw-r--r--MAT/archive.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/MAT/archive.py b/MAT/archive.py
index 59629ac..f7b5783 100644
--- a/MAT/archive.py
+++ b/MAT/archive.py
@@ -68,7 +68,7 @@ class ZipStripper(GenericArchiveStripper):
68 for item in zipin.infolist(): 68 for item in zipin.infolist():
69 # I have not found a way to remove the crap added by zipfile :/ 69 # I have not found a way to remove the crap added by zipfile :/
70 # if not self.is_file_clean(item): 70 # if not self.is_file_clean(item):
71 # logging.debug('%s from %s has compromizing zipinfo' % 71 # logging.debug('%s from %s has compromising zipinfo' %
72 # (item.filename, self.filename)) 72 # (item.filename, self.filename))
73 # return False 73 # return False
74 zipin.extract(item, self.tempdir) 74 zipin.extract(item, self.tempdir)
@@ -114,7 +114,7 @@ harmless format' % item.filename)
114 So far, the zipfile module does not allow to write a ZipInfo 114 So far, the zipfile module does not allow to write a ZipInfo
115 object into a zipfile (and it's a shame !) : so data added 115 object into a zipfile (and it's a shame !) : so data added
116 by zipfile itself could not be removed. It's a big concern. 116 by zipfile itself could not be removed. It's a big concern.
117 Is shiping a patched version of zipfile.py a good idea ? 117 Is shipping a patched version of zipfile.py a good idea ?
118 ''' 118 '''
119 zipin = zipfile.ZipFile(self.filename, 'r') 119 zipin = zipfile.ZipFile(self.filename, 'r')
120 zipout = zipfile.ZipFile(self.output, 'w', allowZip64=True) 120 zipout = zipfile.ZipFile(self.output, 'w', allowZip64=True)
@@ -218,7 +218,7 @@ class TarStripper(GenericArchiveStripper):
218 tarin.close() 218 tarin.close()
219 return False 219 return False
220 except: 220 except:
221 logging.error('%s\'s foramt is not supported or harmless' % 221 logging.error('%s\'s format is not supported or harmless' %
222 item.filename) 222 item.filename)
223 _, ext = os.path.splitext(name) 223 _, ext = os.path.splitext(name)
224 if ext not in parser.NOMETA: 224 if ext not in parser.NOMETA: