Skip to content

Commit

Permalink
use generator expression in WebDirectoryCrawler
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 authored and akorosov committed Nov 10, 2020
1 parent 656a801 commit b8b2ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geospaas_harvesting/crawlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b8b2ccd

Please sign in to comment.