aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Patrick Totzke <patricktotzke@googlemail.com>2011-12-06 20:22:43 +0000
committerGravatar Sebastian Spaeth <Sebastian@SSpaeth.de>2011-12-06 21:56:40 +0100
commitc4d824bc1ee4e49c86315cd3e7f0a4756aff3811 (patch)
tree34a45a520799db12f93eca2fe96e99ca9eecd8b7
parente5564188e0e8ac25cf06c989c45dbb3e6b74c053 (diff)
fix format string in Message.__unicode__
Since 2b0116119160f2dc83, Message.__str__ doesn't construct a hash containing the thread data before constructing the formatstring. This changes the formatstring to accept positional parameters instead of a hash.
-rw-r--r--bindings/python/notmuch/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py
index f95e50e2..ce8e7181 100644
--- a/bindings/python/notmuch/message.py
+++ b/bindings/python/notmuch/message.py
@@ -799,7 +799,7 @@ class Message(object):
return unicode(self).encode('utf-8')
def __unicode__(self):
- format = "%(from)s (%(date)s) (%(tags)s)"
+ format = "%s (%s) (%s)"
return format % (self.get_header('from'),
self.get_tags(),
date.fromtimestamp(self.get_date()),