aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/notmuch/database.py
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2012-01-02 17:07:53 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2012-01-02 17:07:53 +0100
commit228d8c0528311fa0e6c7ef675530b653019946de (patch)
treef643bd5e0d53befba1ca25b21cd29d95808d4b37 /bindings/python/notmuch/database.py
parentada246aa20c2f9b1e225bc50865e208d03296fc0 (diff)
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 <Sebastian@SSpaeth.de>
Diffstat (limited to 'bindings/python/notmuch/database.py')
-rw-r--r--bindings/python/notmuch/database.py2
1 files changed, 1 insertions, 1 deletions
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):