X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Ffilename.py;h=a7cd7e63d44bf03076b5e21087e77ae425761a7a;hp=6b332a92a1733ce11793a7a1e514ec75bc181153;hb=ffe3097e58220d96c7a18b1b6062330551378b82;hpb=2b0116119160f2dc8376a3570b23fd502328a521 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