diff options
author | Tristan van Berkom <tristan@codethink.co.uk> | 2020-08-24 16:53:27 +0900 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2020-08-24 08:05:41 +0000 |
commit | 89c27fd1cc6f9efb6491419d0dfe98ae10d8ec0e (patch) | |
tree | cf2d793cbf363c4ef3e17a2d5f9ee92509254a84 | |
parent | 41204fc7ebb26731c39600a0c0f1a9e5830e5812 (diff) | |
download | buildstream-tristan/fix-sources-generator.tar.gz |
element.py: Fix sources() generator to be a generator.tristan/fix-sources-generator
Instead of a function which returns a generator, yield directly
from the ElementSources delegated generator.
-rw-r--r-- | src/buildstream/element.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 4a29fd8f2..a748cbac3 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -415,7 +415,7 @@ class Element(Plugin): Yields: The sources of this element """ - return self.__sources.sources() + yield from self.__sources.sources() def dependencies(self, scope: Scope, *, recurse: bool = True, visited=None) -> Iterator["Element"]: """dependencies(scope, *, recurse=True) |