X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Ftag.py;fp=bindings%2Fpython%2Fnotmuch%2Ftag.py;h=2fb7d3287a8413e295b1e9b5b2840d9d06bdb476;hp=a77b68d7c507118dd29cbd9e8fce458585cc9b92;hb=ffe3097e58220d96c7a18b1b6062330551378b82;hpb=2b0116119160f2dc8376a3570b23fd502328a521 diff --git a/bindings/python/notmuch/tag.py b/bindings/python/notmuch/tag.py index a77b68d7..2fb7d328 100644 --- a/bindings/python/notmuch/tag.py +++ b/bindings/python/notmuch/tag.py @@ -111,7 +111,10 @@ class Tags(object): return self._valid(self._tags) > 0 def __str__(self): - """The str() representation of Tags() is a space separated list of tags + return unicode(self).encode('utf-8') + + def __unicode__(self): + """string representation of :class:`Tags`: a space separated list of tags .. note::