From 228d8c0528311fa0e6c7ef675530b653019946de Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Mon, 2 Jan 2012 17:07:53 +0100 Subject: python: str.decode() doesn't like kwargs in python 2.5 Recent changes introduced lots of unicodification of strings, mostly in the form of .decode('utf-8', errors='ignore'). However, python 2.5 does not like the errors keyword argument and complains. It does work when used as a simple arg though, so that's what this patch does. Signed-off-by: Sebastian Spaeth --- bindings/python/notmuch/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bindings/python/notmuch/database.py') diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py index 2eae69e..24da8e9 100644 --- a/bindings/python/notmuch/database.py +++ b/bindings/python/notmuch/database.py @@ -935,7 +935,7 @@ class Filenames(object): file_ = Filenames._get(self._files_p) self._move_to_next(self._files_p) - return file_.decode('utf-8', errors='ignore') + return file_.decode('utf-8', 'ignore') next = __next__ # python2.x iterator protocol compatibility def __len__(self): -- cgit v1.2.3