🐝 Compact yield from generator

This commit is contained in:
Miroslav Šedivý committed 2021-01-25 19:00:33 +01:00
1 parent d041e1ce97
commit 7f56d47dbc
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -535,8 +535,7 @@ class LocalFileStorage(StorageInterface):
if path:
path = self.sanitize_path(path)
for entry in self._analysis_backlog_generator(path):
yield entry
yield from self._analysis_backlog_generator(path)
def _analysis_backlog_generator(self, path=None):
if path is None:
+1 -2
View File
@@ -1030,8 +1030,7 @@ class fallback_dict(dict):
def _all(self):
yield self.custom
for d in self.fallbacks:
yield d
yield from self.fallbacks
def dict_filter(dictionary, filter_function):