]> git.notmuchmail.org Git - notmuch/commitdiff
fix format string in Message.__unicode__
authorPatrick Totzke <patricktotzke@googlemail.com>
Tue, 6 Dec 2011 20:22:43 +0000 (20:22 +0000)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Tue, 6 Dec 2011 20:56:40 +0000 (21:56 +0100)
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

index f95e50e284c5124d0a3e6d37bc0d942e684ccf68..ce8e7181b2743f162843c8f2d387baf3515d3f9c 100644 (file)
@@ -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()),