From b8b2ccd2d00b3a4add281290d73b494c798e5e82 Mon Sep 17 00:00:00 2001 From: Adrien Perrin Date: Fri, 6 Nov 2020 09:51:49 +0000 Subject: [PATCH] use generator expression in WebDirectoryCrawler --- geospaas_harvesting/crawlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geospaas_harvesting/crawlers.py b/geospaas_harvesting/crawlers.py index f36601bd..6a571164 100644 --- a/geospaas_harvesting/crawlers.py +++ b/geospaas_harvesting/crawlers.py @@ -235,7 +235,7 @@ def _process_folder(self, folder_path): self.LOGGER.info("Looking for resources in '%s'...", folder_path) for path in self._list_folder_contents(folder_path): # Select paths which do not contain any of the self.excludes strings - if all([excluded_string not in path for excluded_string in self.excludes]): + if all(excluded_string not in path for excluded_string in self.excludes): if self._is_folder(path): self._add_folder_to_process(path) elif self._is_file(path):