From 744b1c083ebe412e92daa1de459d807db226f6fc Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Fri, 7 Oct 2016 10:21:50 -0400 Subject: [style] pep8 --- src/leap/bitmask/mail/adaptors/soledad.py | 9 +++++---- src/leap/bitmask/mail/outgoing/service.py | 3 ++- src/leap/bitmask/mail/rfc3156.py | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src/leap/bitmask/mail') diff --git a/src/leap/bitmask/mail/adaptors/soledad.py b/src/leap/bitmask/mail/adaptors/soledad.py index b8153e5..74f346b 100644 --- a/src/leap/bitmask/mail/adaptors/soledad.py +++ b/src/leap/bitmask/mail/adaptors/soledad.py @@ -945,11 +945,12 @@ class SoledadMailAdaptor(SoledadIndexMixin): # See https://leap.se/code/issues/7495. # This avoids blocks, but the real cause still needs to be # isolated (0.9.0rc3) -- kali - logger.debug("BUG ---------------------------------------------------") - logger.debug("BUG: Error while retrieving part docs for mdoc id %s" % - mdoc_id) + logger.debug("BUG ------------------------------------------") + logger.debug( + "BUG: Error while retrieving part docs for mdoc id %s" % + mdoc_id) logger.error(failure) - logger.debug("BUG (please report above info) ------------------------") + logger.debug("BUG (please report above info) ---------------") return [] def _err_log_cannot_find_msg(failure): diff --git a/src/leap/bitmask/mail/outgoing/service.py b/src/leap/bitmask/mail/outgoing/service.py index f483763..accb9e5 100644 --- a/src/leap/bitmask/mail/outgoing/service.py +++ b/src/leap/bitmask/mail/outgoing/service.py @@ -208,7 +208,8 @@ class OutgoingMail(object): :type encrypt_and_sign_result: tuple """ message, recipient = encrypt_and_sign_result - logger.info("Connecting to SMTP server %s:%s" % (self._host, self._port)) + logger.info( + 'Connecting to SMTP server %s:%s' % (self._host, self._port)) msg = message.as_string(False) # we construct a defer to pass to the ESMTPSenderFactory diff --git a/src/leap/bitmask/mail/rfc3156.py b/src/leap/bitmask/mail/rfc3156.py index 1ab631f..e602b6b 100644 --- a/src/leap/bitmask/mail/rfc3156.py +++ b/src/leap/bitmask/mail/rfc3156.py @@ -40,6 +40,7 @@ logger = Logger() # A generator that solves http://bugs.python.org/issue14983 # + class RFC3156CompliantGenerator(Generator): """ An email generator that addresses Python's issue #14983 for multipart -- cgit v1.2.3