X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Ffilename.py;h=a7cd7e63d44bf03076b5e21087e77ae425761a7a;hb=50b0d0b8ade8aca7dd8434f638555c634b00ebe4;hp=077754e01c15109a76c28062a8dbfd84e5883144;hpb=3434d194026ff65217d9342ffe511f67fd71e79f;p=notmuch diff --git a/bindings/python/notmuch/filename.py b/bindings/python/notmuch/filename.py index 077754e0..a7cd7e63 100644 --- a/bindings/python/notmuch/filename.py +++ b/bindings/python/notmuch/filename.py @@ -18,7 +18,7 @@ Copyright 2010 Sebastian Spaeth ' """ from ctypes import c_char_p from notmuch.globals import (nmlib, STATUS, NotmuchError, - NotmuchFilenamesP, NotmuchMessagesP, NotmuchMessageP) + NotmuchFilenamesP, NotmuchMessageP) class Filenames(object): @@ -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