mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
fix format string in Message.__unicode__
Since 2b01161191
, 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.
This commit is contained in:
parent
e5564188e0
commit
c4d824bc1e
1 changed files with 1 additions and 1 deletions
|
@ -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()),
|
||||
|
|
Loading…
Reference in a new issue