summaryrefslogtreecommitdiff
path: root/py-fake-service/app/adapter
diff options
context:
space:
mode:
authorBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-08-18 16:50:02 -0300
committerBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-08-18 16:56:44 -0300
commit9900ee2ec6b52d8887f00c4d39d0ff30a2714421 (patch)
tree07abc917968d5477c2c9b905461435bc07b059cb /py-fake-service/app/adapter
parent693f2213bc0d34f85beee36709323651cffd2263 (diff)
Fixed PEP8 issues on py fake service
Diffstat (limited to 'py-fake-service/app/adapter')
-rw-r--r--py-fake-service/app/adapter/contacts.py6
-rw-r--r--py-fake-service/app/adapter/mailset.py5
2 files changed, 8 insertions, 3 deletions
diff --git a/py-fake-service/app/adapter/contacts.py b/py-fake-service/app/adapter/contacts.py
index aaf2d23e..5c55b8b1 100644
--- a/py-fake-service/app/adapter/contacts.py
+++ b/py-fake-service/app/adapter/contacts.py
@@ -13,8 +13,10 @@ class Contacts:
def search(self, query):
contacts_query = re.compile(query)
return [
- contact.__dict__ for contact in self.contacts if contacts_query.match(
- contact.addresses[0])]
+ contact.__dict__
+ for contact in self.contacts
+ if contacts_query.match(contact.addresses[0])
+ ]
class Contact:
diff --git a/py-fake-service/app/adapter/mailset.py b/py-fake-service/app/adapter/mailset.py
index d08a58cb..2d9707ab 100644
--- a/py-fake-service/app/adapter/mailset.py
+++ b/py-fake-service/app/adapter/mailset.py
@@ -22,7 +22,10 @@ class MailSet:
mail.status.append('read')
def delete(self, mail_id):
- """ Returns True if the email got purged, else returns False meaning the email got moved to trash """
+ """
+ Returns True if the email got purged,
+ else returns False meaning the email got moved to trash
+ """
mail = self.get(mail_id)
if 'trash' in mail.tags: