]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/tag.py
use __unicode__ for string representation
[notmuch] / bindings / python / notmuch / tag.py
index a77b68d7c507118dd29cbd9e8fce458585cc9b92..2fb7d3287a8413e295b1e9b5b2840d9d06bdb476 100644 (file)
@@ -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::