summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2016-01-11 22:03:57 +0100
committerjvoisin2016-01-11 22:03:57 +0100
commitfbe3fb63cec551cc16172e2b88e4d83aeea1cafd (patch)
treef64186a9755eff42268de6a5aea540f6d32a810d
parent41e2bf2949fbcb617329b57d958fb84e39b893f2 (diff)
Fix various typos pointed by pabs
-rw-r--r--CHANGELOG2
-rw-r--r--RELEASE2
-rw-r--r--libmat/bencode/bencode.py4
-rw-r--r--libmat/mutagenstripper.py2
-rw-r--r--libmat/parser.py4
-rwxr-xr-xmat-gui2
6 files changed, 8 insertions, 8 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 3b81e0c..b5ed04b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -46,7 +46,7 @@
46 * Heavily refactoring of archives handling 46 * Heavily refactoring of archives handling
47 * Handle read-only files inside archives 47 * Handle read-only files inside archives
48 * Handle zip-specific metadata 48 * Handle zip-specific metadata
49 * GUI allows to pick which unsupported files to add to the "clean" archive 49 * GUI allows one to pick which unsupported files to add to the "clean" archive
50 50
510.4.2 - 31oct2013 510.4.2 - 31oct2013
52 * Fix (for real this time) MAT eating PDF 52 * Fix (for real this time) MAT eating PDF
diff --git a/RELEASE b/RELEASE
index b99dc16..a7955fe 100644
--- a/RELEASE
+++ b/RELEASE
@@ -1,6 +1,6 @@
1check if year in the copyright notice in README.md needs an update. 1check if year in the copyright notice in README.md needs an update.
2 2
3mark "Fix commited" tickes as "resolved" in the bugtracker. 3mark "Fix committed" tickets as "resolved" in the bugtracker.
4 4
5update localisations using 5update localisations using
6 xgettext -k_ -kN_ --from-code utf-8 -o ./po/mat-gui.pot mat-gui.py ./data/mat.glade 6 xgettext -k_ -kN_ --from-code utf-8 -o ./po/mat-gui.pot mat-gui.py ./data/mat.glade
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):
134def bdecode(string): 134def 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
19FIELD = object() 19FIELD = object()
diff --git a/mat-gui b/mat-gui
index cedc099..f8ad92f 100755
--- a/mat-gui
+++ b/mat-gui
@@ -183,7 +183,7 @@ class GUI(object):
183 w = Gtk.AboutDialog() 183 w = Gtk.AboutDialog()
184 w.set_authors(['Julien (jvoisin) Voisin', ]) 184 w.set_authors(['Julien (jvoisin) Voisin', ])
185 w.set_artists(['Marine Benoît', ]) 185 w.set_artists(['Marine Benoît', ])
186 w.set_copyright('GNU Public License v2') 186 w.set_copyright('GNU General Public License v2')
187 w.set_comments(_('Trash your meta, keep your data')) 187 w.set_comments(_('Trash your meta, keep your data'))
188 w.set_logo(GdkPixbuf.Pixbuf.new_from_file_at_size(self.logo, 400, 200)) 188 w.set_logo(GdkPixbuf.Pixbuf.new_from_file_at_size(self.logo, 400, 200))
189 w.set_program_name('Metadata Anonymisation Toolkit') 189 w.set_program_name('Metadata Anonymisation Toolkit')