diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2011-12-14 11:58:25 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-01-02 16:34:56 +0100 |
commit | 83b256b12be25b29f915587342b5ccb139864268 (patch) | |
tree | d0426a15d3a3834a5b5d9381c8ae9ea361badcdc /bindings/python/notmuch/database.py | |
parent | 4a6642a2a1e2d15f71fff6b6a0b4bbb0296e2bdb (diff) |
python: add missing conversions from and to utf-8
Diffstat (limited to 'bindings/python/notmuch/database.py')
-rw-r--r-- | bindings/python/notmuch/database.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py index 3f6e04d6..2eae69ed 100644 --- a/bindings/python/notmuch/database.py +++ b/bindings/python/notmuch/database.py @@ -430,7 +430,7 @@ class Database(object): removed. """ self._assert_db_is_initialized() - return self._remove_message(self._db, filename) + return self._remove_message(self._db, _str(filename)) def find_message(self, msgid): """Returns a :class:`Message` as identified by its message ID @@ -933,9 +933,9 @@ class Filenames(object): self._files_p = None raise StopIteration - file = Filenames._get(self._files_p) + file_ = Filenames._get(self._files_p) self._move_to_next(self._files_p) - return file + return file_.decode('utf-8', errors='ignore') next = __next__ # python2.x iterator protocol compatibility def __len__(self): |