diff options
| author | jvoisin | 2016-01-11 22:03:57 +0100 |
|---|---|---|
| committer | jvoisin | 2016-01-11 22:03:57 +0100 |
| commit | fbe3fb63cec551cc16172e2b88e4d83aeea1cafd (patch) | |
| tree | f64186a9755eff42268de6a5aea540f6d32a810d /libmat | |
| parent | 41e2bf2949fbcb617329b57d958fb84e39b893f2 (diff) | |
Fix various typos pointed by pabs
Diffstat (limited to 'libmat')
| -rw-r--r-- | libmat/bencode/bencode.py | 4 | ||||
| -rw-r--r-- | libmat/mutagenstripper.py | 2 | ||||
| -rw-r--r-- | libmat/parser.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libmat/bencode/bencode.py b/libmat/bencode/bencode.py index a7967fc..afbd360 100644 --- a/libmat/bencode/bencode.py +++ b/libmat/bencode/bencode.py | |||
| @@ -134,9 +134,9 @@ def bencode(string): | |||
| 134 | def bdecode(string): | 134 | def bdecode(string): |
| 135 | """decode $string""" | 135 | """decode $string""" |
| 136 | try: | 136 | try: |
| 137 | result, lenght = DECODE_FUNC[string[0]](string, 0) | 137 | result, length = DECODE_FUNC[string[0]](string, 0) |
| 138 | except (IndexError, KeyError, ValueError): | 138 | except (IndexError, KeyError, ValueError): |
| 139 | raise BTFailure('Not a valid bencoded string') | 139 | raise BTFailure('Not a valid bencoded string') |
| 140 | if lenght != len(string): | 140 | if length != len(string): |
| 141 | raise BTFailure('Invalid bencoded value (data after valid prefix)') | 141 | raise BTFailure('Invalid bencoded value (data after valid prefix)') |
| 142 | return result | 142 | return result |
diff --git a/libmat/mutagenstripper.py b/libmat/mutagenstripper.py index e7f2a96..10831b3 100644 --- a/libmat/mutagenstripper.py +++ b/libmat/mutagenstripper.py | |||
| @@ -16,7 +16,7 @@ class MutagenStripper(parser.GenericParser): | |||
| 16 | self._create_mfile() | 16 | self._create_mfile() |
| 17 | 17 | ||
| 18 | def _create_mfile(self): | 18 | def _create_mfile(self): |
| 19 | """ This method must be overrriden to instanciate the `mfile` attribute.""" | 19 | """ This method must be overridden to instantiate the `mfile` attribute.""" |
| 20 | raise NotImplementedError | 20 | raise NotImplementedError |
| 21 | 21 | ||
| 22 | def is_clean(self): | 22 | def is_clean(self): |
diff --git a/libmat/parser.py b/libmat/parser.py index 2a82a25..b81b576 100644 --- a/libmat/parser.py +++ b/libmat/parser.py | |||
| @@ -12,8 +12,8 @@ NOMETA = frozenset(( | |||
| 12 | '.bmp', # "raw" image | 12 | '.bmp', # "raw" image |
| 13 | '.rdf', # text | 13 | '.rdf', # text |
| 14 | '.txt', # plain text | 14 | '.txt', # plain text |
| 15 | '.xml', # formated text (XML) | 15 | '.xml', # formatted text (XML) |
| 16 | '.rels', # openXML formated text | 16 | '.rels', # openXML formatted text |
| 17 | )) | 17 | )) |
| 18 | 18 | ||
| 19 | FIELD = object() | 19 | FIELD = object() |
