diff options
author | Bruno Wagner <bwagner@thoughtworks.com> | 2014-10-16 14:51:38 +0200 |
---|---|---|
committer | Bruno Wagner <bwagner@thoughtworks.com> | 2014-10-16 14:51:38 +0200 |
commit | 2871fd91a844e007cbf821b51f6bba16cf727abb (patch) | |
tree | 1b222a8c47160db2d9dcd2e2e8af720c14f16782 | |
parent | 898c6049243ac93a5fffdb0e2809de9b454d6719 (diff) |
Pep8 fixes
-rw-r--r-- | service/pixelated/adapter/search.py | 4 | ||||
-rw-r--r-- | service/test/unit/adapter/mail_test.py | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/service/pixelated/adapter/search.py b/service/pixelated/adapter/search.py index cfb5aaa0..a5b31c67 100644 --- a/service/pixelated/adapter/search.py +++ b/service/pixelated/adapter/search.py @@ -124,7 +124,6 @@ class SearchEngine(object): else: return self._paginated_search_mails(query, window, page) - def _search_all_mails(self, query): with self._index.searcher() as searcher: results = searcher.search(query, limit=None) @@ -138,7 +137,6 @@ class SearchEngine(object): results = searcher.search_page(query, page, pagelen=window) return [mail['ident'] for mail in results] - def prepare_query(self, query): query = ( query @@ -147,8 +145,6 @@ class SearchEngine(object): .replace('in:all', '*') ) return QueryParser('raw', self._index.schema).parse(query) - - def remove_from_index(self, mail_id): writer = self._index.writer() diff --git a/service/test/unit/adapter/mail_test.py b/service/test/unit/adapter/mail_test.py index 94578a05..b4e19017 100644 --- a/service/test/unit/adapter/mail_test.py +++ b/service/test/unit/adapter/mail_test.py @@ -87,8 +87,8 @@ class TestPixelatedMail(unittest.TestCase): 'mailbox': 'inbox', 'security_casing': {}, 'status': ['recent'], - 'tags': []} - ) + 'tags': [] + }) class InputMailTest(unittest.TestCase): |