aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/python/notmuch/filename.py
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/python/notmuch/filename.py')
-rw-r--r--bindings/python/notmuch/filename.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bindings/python/notmuch/filename.py b/bindings/python/notmuch/filename.py
index 6b332a92..a7cd7e63 100644
--- a/bindings/python/notmuch/filename.py
+++ b/bindings/python/notmuch/filename.py
@@ -99,6 +99,9 @@ class Filenames(object):
self._files = None
def __str__(self):
+ return unicode(self).encode('utf-8')
+
+ def __unicode__(self):
"""Represent Filenames() as newline-separated list of full paths
.. note:: As this iterates over the filenames, we will not be