summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2016-12-22 14:48:02 -0800
committerDylan Baker <dylan@pnwbakers.com>2016-12-27 12:52:44 -0800
commitc83defdfb735cff6388e20c5dd5d866994fec7b6 (patch)
treebcba06a02e44533c8e341df3bcab24d14e6f1659 /alot
parent2d7a5a9d71b91a4f60d949fce908d3765f6de1e9 (diff)
db/attachment: remove useless delete
This dict key is deleted, and then promptly replaced. The deletion is useless, the replacement does the same thing.
Diffstat (limited to 'alot')
-rw-r--r--alot/db/attachment.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/alot/db/attachment.py b/alot/db/attachment.py
index 94c0f7ad..a1b7bc04 100644
--- a/alot/db/attachment.py
+++ b/alot/db/attachment.py
@@ -86,8 +86,8 @@ class Attachment(object):
def get_mime_representation(self):
"""returns mime part that constitutes this attachment"""
part = deepcopy(self.part)
- cd = self.part['Content-Disposition']
- del part['Content-Disposition']
- part['Content-Disposition'] = Header(cd, maxlinelen=78,
- header_name='Content-Disposition')
+ part['Content-Disposition'] = Header(
+ self.part['Content-Disposition'],
+ maxlinelen=78,
+ header_name='Content-Disposition')
return part