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:
Patrick Totzke 2011-12-06 20:22:43 +00:00 committed by Sebastian Spaeth
parent e5564188e0
commit c4d824bc1e

View 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()),