diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2015-09-02 16:20:10 -0300 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2015-09-02 16:20:17 -0300 |
commit | d4c61d7680a726227541daa13e6f72efbbd0fa2e (patch) | |
tree | bd4ca19044e0356edfaca91563288f9c2352a0ed /src | |
parent | 1d70a21a4b6476fb69122c0629440815aa793099 (diff) |
[style] fixing pep8 warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/mail/incoming/service.py | 3 | ||||
-rw-r--r-- | src/leap/mail/incoming/tests/test_incoming_mail.py | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/leap/mail/incoming/service.py b/src/leap/mail/incoming/service.py index 57e0007..2e953a7 100644 --- a/src/leap/mail/incoming/service.py +++ b/src/leap/mail/incoming/service.py @@ -465,7 +465,8 @@ class IncomingMail(Service): return d def _add_decrypted_header(self, msg): - msg.add_header(self.LEAP_ENCRYPTION_HEADER, self.LEAP_ENCRYPTION_DECRYPTED) + msg.add_header(self.LEAP_ENCRYPTION_HEADER, + self.LEAP_ENCRYPTION_DECRYPTED) def _decrypt_multipart_encrypted_msg(self, msg, encoding, senderAddress): """ diff --git a/src/leap/mail/incoming/tests/test_incoming_mail.py b/src/leap/mail/incoming/tests/test_incoming_mail.py index 798824a..033799d 100644 --- a/src/leap/mail/incoming/tests/test_incoming_mail.py +++ b/src/leap/mail/incoming/tests/test_incoming_mail.py @@ -182,7 +182,7 @@ subject: independence of cyberspace self.headers = {} def add_header(self, k, v): - self.headers[k]=v + self.headers[k] = v msg = DummyMsg() self.fetcher._add_decrypted_header(msg) @@ -217,10 +217,7 @@ subject: independence of cyberspace def add_decrypted_header_called(_): self.assertTrue(self.fetcher._add_decrypted_header.called, - "There was some errors with decryption") - - - + "There was some errors with decryption") d = self._km.encrypt( self.EMAIL, |