From fb0e2fa10b94b22a792e756e996b09436f472b0d Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 16 Jul 2013 12:42:47 +0200 Subject: Gramatical and spelling corrections --- MAT/archive.py | 6 +++--- MAT/images.py | 4 ++-- MAT/mat.py | 10 +++++----- MAT/misc.py | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) (limited to 'MAT') 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): 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): - # logging.debug('%s from %s has compromizing zipinfo' % + # logging.debug('%s from %s has compromising zipinfo' % # (item.filename, self.filename)) # return False zipin.extract(item, self.tempdir) @@ -114,7 +114,7 @@ harmless format' % item.filename) So far, the zipfile module does not allow to write a ZipInfo object into a zipfile (and it's a shame !) : so data added by zipfile itself could not be removed. It's a big concern. - Is shiping a patched version of zipfile.py a good idea ? + Is shipping a patched version of zipfile.py a good idea ? ''' zipin = zipfile.ZipFile(self.filename, 'r') zipout = zipfile.ZipFile(self.output, 'w', allowZip64=True) @@ -218,7 +218,7 @@ class TarStripper(GenericArchiveStripper): tarin.close() return False except: - logging.error('%s\'s foramt is not supported or harmless' % + logging.error('%s\'s format is not supported or harmless' % item.filename) _, ext = os.path.splitext(name) if ext not in parser.NOMETA: diff --git a/MAT/images.py b/MAT/images.py index 236d566..55c1a90 100644 --- a/MAT/images.py +++ b/MAT/images.py @@ -11,7 +11,7 @@ class JpegStripper(parser.GenericParser): ''' def _should_remove(self, field): ''' - return True if the field is compromizing + return True if the field is compromising ''' field_list = frozenset(['start_image', 'app0', 'start_frame', 'start_scan', 'data', 'end_image']) @@ -31,7 +31,7 @@ class PngStripper(parser.GenericParser): ''' def _should_remove(self, field): ''' - return True if the field is compromizing + return True if the field is compromising ''' field_list = frozenset(['id', 'header', 'physical', 'end']) if field.name in field_list: diff --git a/MAT/mat.py b/MAT/mat.py index def8cb3..27c1d0e 100644 --- a/MAT/mat.py +++ b/MAT/mat.py @@ -50,7 +50,7 @@ def get_datadir(): def list_supported_formats(): ''' - Return a list of all localy supported fileformat + Return a list of all locally supported fileformat ''' handler = XMLParser() parser = xml.sax.make_parser() @@ -79,7 +79,7 @@ class XMLParser(xml.sax.handler.ContentHandler): def startElement(self, name, attrs): ''' - Called when entering into xml balise + Called when entering into xml tag ''' self.between = True self.key = name @@ -87,7 +87,7 @@ class XMLParser(xml.sax.handler.ContentHandler): def endElement(self, name): ''' - Called when exiting a xml balise + Called when exiting a xml tag ''' if name == 'format': # exiting a fileformat section self.list.append(self.dict.copy()) @@ -99,7 +99,7 @@ class XMLParser(xml.sax.handler.ContentHandler): def characters(self, characters): ''' - Concatenate the content between opening and closing balises + Concatenate the content between opening and closing tags ''' if self.between: self.content += characters @@ -142,7 +142,7 @@ def create_class_file(name, backup, **kwargs): if not os.access(name, os.W_OK): #check write permission - logging.error('%s is not writtable' % name) + logging.error('%s is not writable' % name) return None if not os.path.getsize(name): diff --git a/MAT/misc.py b/MAT/misc.py index 582f34e..4c104a8 100644 --- a/MAT/misc.py +++ b/MAT/misc.py @@ -47,7 +47,7 @@ class TorrentStripper(parser.GenericParser): def remove_all(self): ''' - Remove all the files that are compromizing + Remove all the files that are compromising ''' with open(self.filename, 'r') as f: decoded = bencode.bdecode(f.read()) -- cgit v1.3