summaryrefslogtreecommitdiff
path: root/src/buildstream/_projectrefs.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-07-03 12:20:27 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commitd8466183f77c75bbd7ad27c7cbf5e58189945be1 (patch)
tree3ab6c9fa8f02ce355b0543608fafcd5fa4b5db28 /src/buildstream/_projectrefs.py
parent9e801b5e1c19c46de8b1e88f416e34e180df83e9 (diff)
downloadbuildstream-d8466183f77c75bbd7ad27c7cbf5e58189945be1.tar.gz
_yaml: Create 'from_dict' on Node and remove node creation methods
Using 'Node.from_dict({})' can replace new_empty_node, and the rest is not needed anymore. - Adapt all call sites
Diffstat (limited to 'src/buildstream/_projectrefs.py')
-rw-r--r--src/buildstream/_projectrefs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_projectrefs.py b/src/buildstream/_projectrefs.py
index c3e669c81..a46765250 100644
--- a/src/buildstream/_projectrefs.py
+++ b/src/buildstream/_projectrefs.py
@@ -87,7 +87,7 @@ class ProjectRefs():
# Ensure we create our toplevel entry point on the fly here
for node in [self._toplevel_node, self._toplevel_save]:
if 'projects' not in node:
- node['projects'] = _yaml.new_empty_node(ref_node=node)
+ node['projects'] = {}
# lookup_ref()
#