From 5f2a19336877924bd7344a7915ba99bf8d699d62 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli <zack@upsilon.cc> Date: Thu, 7 Nov 2019 13:29:12 +0100 Subject: [PATCH] in_memory.py: make flake8 happy again --- swh/search/in_memory.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/swh/search/in_memory.py b/swh/search/in_memory.py index 421729c..d32b0fe 100644 --- a/swh/search/in_memory.py +++ b/swh/search/in_memory.py @@ -64,7 +64,9 @@ class InMemorySearch: with_visit: bool = False, scroll_token: str = None, count: int = 50 ) -> Dict[str, object]: - matches = (self._origins[id_] for id_ in self._origin_ids) # type: Iterator[Dict[str, Any]] + matches = \ + (self._origins[id_] + for id_ in self._origin_ids) # type: Iterator[Dict[str, Any]] if url_pattern: tokens = set(self._url_splitter.split(url_pattern)) -- GitLab