summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/mailstore
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-08-11 14:59:32 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-08-11 17:00:34 +0200
commit798ffc624f0a2aa034846a322823caaf3d6f3837 (patch)
tree4a67d9d3b6bb9f70e6c921ea21ac3261cea9a715 /service/pixelated/adapter/mailstore
parent224a4a7cd94d3a1eb825908e33feb10e72ad1a31 (diff)
Fixed pep8.
Diffstat (limited to 'service/pixelated/adapter/mailstore')
-rw-r--r--service/pixelated/adapter/mailstore/body_parser.py4
-rw-r--r--service/pixelated/adapter/mailstore/leap_mailstore.py4
2 files changed, 4 insertions, 4 deletions
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):