diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-05 22:51:10 +0000 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2011-12-06 13:27:08 +0100 |
commit | ffe3097e58220d96c7a18b1b6062330551378b82 (patch) | |
tree | 4fb9453f0643c2520ad71f8ba35eb030ff351b8b /bindings/python/notmuch/tag.py | |
parent | 2b0116119160f2dc8376a3570b23fd502328a521 (diff) |
use __unicode__ for string representation
Diffstat (limited to 'bindings/python/notmuch/tag.py')
-rw-r--r-- | bindings/python/notmuch/tag.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bindings/python/notmuch/tag.py b/bindings/python/notmuch/tag.py index a77b68d..2fb7d32 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:: |