From d6806671c1ae96227acfb8504e98cf2278da5f90 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Mon, 1 Jul 2013 10:51:04 -0500 Subject: pep8&pyflakes fixes mostly automatically fixed --- alot/db/attachment.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'alot/db/attachment.py') 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 -- cgit v1.2.3