summaryrefslogtreecommitdiff
path: root/alot/db
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-04-23 14:31:22 +0200
committerAnton Khirnov <anton@khirnov.net>2020-04-23 14:31:22 +0200
commitaa2d9e486219aff9abb9c113ba3e3de19cbda3db (patch)
tree381c9b6568c778ac041ea3953bcc2c1fba36c3f3 /alot/db
parent7b3bd19a2a2f2a9ebbd6ac4f3b90ca7206461980 (diff)
db/attachment: remove pointless call to string_decode()
The value is already a string.
Diffstat (limited to 'alot/db')
-rw-r--r--alot/db/attachment.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/alot/db/attachment.py b/alot/db/attachment.py
index 4dc15994..fb6523e1 100644
--- a/alot/db/attachment.py
+++ b/alot/db/attachment.py
@@ -7,7 +7,7 @@ import tempfile
import email.charset as charset
from copy import deepcopy
-from ..helper import string_decode, humanize_size, guess_mimetype
+from ..helper import humanize_size, guess_mimetype
charset.add_charset('utf-8', charset.QP, charset.QP, 'utf-8')
@@ -23,10 +23,9 @@ class Attachment:
self.part = emailpart
def __str__(self):
- desc = '%s:%s (%s)' % (self.get_content_type(),
+ return '%s:%s (%s)' % (self.get_content_type(),
self.get_filename(),
humanize_size(self.get_size()))
- return string_decode(desc)
def get_filename(self):
"""