summaryrefslogtreecommitdiff
path: root/buildstream/_yaml.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-12-11 20:15:28 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-12-11 21:19:22 +0900
commit69ee1df2e100148901173908088633047f8dea57 (patch)
treee794a33824764b38f30a25b60c2f203a8c9f88fc /buildstream/_yaml.py
parent49a4c76d534803c13ba0253850d6bf165b0880fe (diff)
downloadbuildstream-69ee1df2e100148901173908088633047f8dea57.tar.gz
_yaml.py: More line unwrapping.
Diffstat (limited to 'buildstream/_yaml.py')
-rw-r--r--buildstream/_yaml.py9
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]