[PATCH] fix format string in Message.__unicode__
Patrick Totzke
patricktotzke at googlemail.com
Tue Dec 6 12:22:43 PST 2011
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.
---
bindings/python/notmuch/message.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py
index f95e50e..ce8e718 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()),
--
1.7.4.1
More information about the notmuch
mailing list