]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/database.py
python: str.decode() doesn't like kwargs in python 2.5
[notmuch] / bindings / python / notmuch / database.py
index 2eae69ed72ae6aebde5671a55df97500899b4161..24da8e99f1b715d43ffd8136e10ca4a7ed921b72 100644 (file)
@@ -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):