🐝 Compact yield from generator
This commit is contained in:
1 parent
d041e1ce97
commit
7f56d47dbc
2 files changed
+2
-4
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user