diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-12-11 20:15:28 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-12-11 21:19:22 +0900 |
commit | 69ee1df2e100148901173908088633047f8dea57 (patch) | |
tree | e794a33824764b38f30a25b60c2f203a8c9f88fc /buildstream/_yaml.py | |
parent | 49a4c76d534803c13ba0253850d6bf165b0880fe (diff) | |
download | buildstream-69ee1df2e100148901173908088633047f8dea57.tar.gz |
_yaml.py: More line unwrapping.
Diffstat (limited to 'buildstream/_yaml.py')
-rw-r--r-- | buildstream/_yaml.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py index bf9aeec44..97f57f6b6 100644 --- a/buildstream/_yaml.py +++ b/buildstream/_yaml.py @@ -198,8 +198,7 @@ def node_decorate_dict(filename, target, source, toplevel): if isinstance(value, collections.Mapping): node_decorate_dict(filename, target_value, value, toplevel) elif isinstance(value, list): - member.elements = node_decorate_list( - filename, target_value, value, toplevel) + member.elements = node_decorate_list(filename, target_value, value, toplevel) def node_decorate_list(filename, target, source, toplevel): @@ -214,8 +213,7 @@ def node_decorate_list(filename, target, source, toplevel): if isinstance(item, collections.Mapping): node_decorate_dict(filename, target_item, item, toplevel) elif isinstance(item, list): - element.elements = node_decorate_list( - filename, target_item, item, toplevel) + element.elements = node_decorate_list(filename, target_item, item, toplevel) elements.append(element) @@ -342,8 +340,7 @@ def composite_dict_recurse(target, source, policy=CompositePolicy.OVERWRITE, # Give the new dict provenance value_provenance = value.get(PROVENANCE_KEY) if value_provenance: - target_value[PROVENANCE_KEY] = copy.deepcopy( - value_provenance) + target_value[PROVENANCE_KEY] = copy.deepcopy(value_provenance) # Add a new provenance member element to the containing dict target_provenance.members[key] = source_provenance.members[key] |