diff options
| author | jvoisin | 2013-07-16 12:42:47 +0200 |
|---|---|---|
| committer | jvoisin | 2013-07-16 12:42:47 +0200 |
| commit | fb0e2fa10b94b22a792e756e996b09436f472b0d (patch) | |
| tree | 6e254445a133a824319f7e74aaa66991346110cb /MAT/mat.py | |
| parent | cd1405fc3994fda52d266811ff07f7021931df9d (diff) | |
Gramatical and spelling corrections
Diffstat (limited to 'MAT/mat.py')
| -rw-r--r-- | MAT/mat.py | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -50,7 +50,7 @@ def get_datadir(): | |||
| 50 | 50 | ||
| 51 | def list_supported_formats(): | 51 | def list_supported_formats(): |
| 52 | ''' | 52 | ''' |
| 53 | Return a list of all localy supported fileformat | 53 | Return a list of all locally supported fileformat |
| 54 | ''' | 54 | ''' |
| 55 | handler = XMLParser() | 55 | handler = XMLParser() |
| 56 | parser = xml.sax.make_parser() | 56 | parser = xml.sax.make_parser() |
| @@ -79,7 +79,7 @@ class XMLParser(xml.sax.handler.ContentHandler): | |||
| 79 | 79 | ||
| 80 | def startElement(self, name, attrs): | 80 | def startElement(self, name, attrs): |
| 81 | ''' | 81 | ''' |
| 82 | Called when entering into xml balise | 82 | Called when entering into xml tag |
| 83 | ''' | 83 | ''' |
| 84 | self.between = True | 84 | self.between = True |
| 85 | self.key = name | 85 | self.key = name |
| @@ -87,7 +87,7 @@ class XMLParser(xml.sax.handler.ContentHandler): | |||
| 87 | 87 | ||
| 88 | def endElement(self, name): | 88 | def endElement(self, name): |
| 89 | ''' | 89 | ''' |
| 90 | Called when exiting a xml balise | 90 | Called when exiting a xml tag |
| 91 | ''' | 91 | ''' |
| 92 | if name == 'format': # exiting a fileformat section | 92 | if name == 'format': # exiting a fileformat section |
| 93 | self.list.append(self.dict.copy()) | 93 | self.list.append(self.dict.copy()) |
| @@ -99,7 +99,7 @@ class XMLParser(xml.sax.handler.ContentHandler): | |||
| 99 | 99 | ||
| 100 | def characters(self, characters): | 100 | def characters(self, characters): |
| 101 | ''' | 101 | ''' |
| 102 | Concatenate the content between opening and closing balises | 102 | Concatenate the content between opening and closing tags |
| 103 | ''' | 103 | ''' |
| 104 | if self.between: | 104 | if self.between: |
| 105 | self.content += characters | 105 | self.content += characters |
| @@ -142,7 +142,7 @@ def create_class_file(name, backup, **kwargs): | |||
| 142 | 142 | ||
| 143 | if not os.access(name, os.W_OK): | 143 | if not os.access(name, os.W_OK): |
| 144 | #check write permission | 144 | #check write permission |
| 145 | logging.error('%s is not writtable' % name) | 145 | logging.error('%s is not writable' % name) |
| 146 | return None | 146 | return None |
| 147 | 147 | ||
| 148 | if not os.path.getsize(name): | 148 | if not os.path.getsize(name): |
