From 9900ee2ec6b52d8887f00c4d39d0ff30a2714421 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Goncalves Date: Mon, 18 Aug 2014 16:50:02 -0300 Subject: Fixed PEP8 issues on py fake service --- py-fake-service/app/adapter/contacts.py | 6 ++++-- py-fake-service/app/adapter/mailset.py | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'py-fake-service/app/adapter') 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: -- cgit v1.2.3