diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-09-22 12:13:13 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-10-01 19:11:53 +0900 |
commit | 5bbec550b65835cc16d7c5e13f12e6c7f9b99d3d (patch) | |
tree | d519e03222125503eb1d0e384b02ff3db3d6d5af | |
parent | 83b8128e66e1ddb9f26aa6155dd5903bb3eb29b1 (diff) | |
download | buildstream-5bbec550b65835cc16d7c5e13f12e6c7f9b99d3d.tar.gz |
plugin.py: Make Plugin.node_items() just yield from _yaml.node_items()
-rw-r--r-- | buildstream/plugin.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/buildstream/plugin.py b/buildstream/plugin.py index 592089c63..e6a21cbe9 100644 --- a/buildstream/plugin.py +++ b/buildstream/plugin.py @@ -208,10 +208,7 @@ class Plugin(): This convenience function should be used instead of the dict.items() builtin function provided by python. """ - for key, value in node.items(): - if key == _yaml.PROVENANCE_KEY: - continue - yield (key, value) + yield from _yaml.node_items(node) def node_provenance(self, node, member_name=None): """Gets the provenance for `node` and `member_name` |