diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2013-07-01 10:51:04 -0500 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-07-07 18:14:28 +0100 |
commit | d6806671c1ae96227acfb8504e98cf2278da5f90 (patch) | |
tree | f453d5cc8146852e7a1a9194f9ad60eadf644498 /alot/db/attachment.py | |
parent | 949c5b17b48ed8e45d315ba9c55d3ace1b511cb3 (diff) |
pep8&pyflakes fixes
mostly automatically fixed
Diffstat (limited to 'alot/db/attachment.py')
-rw-r--r-- | alot/db/attachment.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/alot/db/attachment.py b/alot/db/attachment.py index 2f8b37dc..ad996d2e 100644 --- a/alot/db/attachment.py +++ b/alot/db/attachment.py @@ -14,6 +14,7 @@ from alot.db.utils import decode_header class Attachment(object): + """represents a mail attachment""" def __init__(self, emailpart): @@ -25,8 +26,8 @@ class Attachment(object): def __str__(self): desc = '%s:%s (%s)' % (self.get_content_type(), - self.get_filename(), - helper.humanize_size(self.get_size())) + self.get_filename(), + helper.humanize_size(self.get_size())) return string_decode(desc) def get_filename(self): @@ -87,5 +88,5 @@ class Attachment(object): cd = self.part['Content-Disposition'] del part['Content-Disposition'] part['Content-Disposition'] = Header(cd, maxlinelen=78, - header_name='Content-Disposition') + header_name='Content-Disposition') return part |