From 798ffc624f0a2aa034846a322823caaf3d6f3837 Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Tue, 11 Aug 2015 14:59:32 +0200 Subject: Fixed pep8. --- service/pixelated/adapter/mailstore/body_parser.py | 4 ++-- service/pixelated/adapter/mailstore/leap_mailstore.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'service/pixelated/adapter/mailstore') diff --git a/service/pixelated/adapter/mailstore/body_parser.py b/service/pixelated/adapter/mailstore/body_parser.py index 893daac9..c79e11a4 100644 --- a/service/pixelated/adapter/mailstore/body_parser.py +++ b/service/pixelated/adapter/mailstore/body_parser.py @@ -27,7 +27,7 @@ class BodyParser(object): def parsed_content(self): parser = Parser() - text='' + text = '' text += 'Content-Type: %s\n' % self._content_type if self._content_transfer_encoding is not None: text += 'Content-Transfer-Encoding: %s\n' % self._content_transfer_encoding @@ -38,4 +38,4 @@ class BodyParser(object): result = unicode(parsed_body.get_payload(decode=True), encoding='utf-8') - return unicode(result) \ No newline at end of file + return unicode(result) diff --git a/service/pixelated/adapter/mailstore/leap_mailstore.py b/service/pixelated/adapter/mailstore/leap_mailstore.py index df9a9b44..f03e2900 100644 --- a/service/pixelated/adapter/mailstore/leap_mailstore.py +++ b/service/pixelated/adapter/mailstore/leap_mailstore.py @@ -32,7 +32,7 @@ class LeapMail(Mail): self._headers = headers if headers is not None else {} self._body = body self.tags = set(tags) # TODO test that asserts copy - self._flags = set(flags) # TODO test that asserts copy + self._flags = set(flags) # TODO test that asserts copy @property def headers(self): @@ -149,7 +149,7 @@ class LeapMailStore(MailStore): message = yield self._fetch_msg_from_soledad(mail.mail_id) message.get_wrapper().set_tags(tuple(mail.tags)) message.get_wrapper().set_flags(tuple(mail.flags)) - yield self._update_mail(message) # TODO assert this is yielded (otherwise asynchronous) + yield self._update_mail(message) # TODO assert this is yielded (otherwise asynchronous) @defer.inlineCallbacks def all_mails(self): -- cgit v1.2.3