diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-07-03 12:20:27 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-15 14:14:03 +0000 |
commit | d8466183f77c75bbd7ad27c7cbf5e58189945be1 (patch) | |
tree | 3ab6c9fa8f02ce355b0543608fafcd5fa4b5db28 /src/buildstream/_context.py | |
parent | 9e801b5e1c19c46de8b1e88f416e34e180df83e9 (diff) | |
download | buildstream-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/_context.py')
-rw-r--r-- | src/buildstream/_context.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_context.py b/src/buildstream/_context.py index 6977565f2..aa5867bd5 100644 --- a/src/buildstream/_context.py +++ b/src/buildstream/_context.py @@ -154,7 +154,7 @@ class Context(): self._artifactcache = None self._sourcecache = None self._projects = [] - self._project_overrides = _yaml.new_empty_node() + self._project_overrides = _yaml.Node.from_dict({}) self._workspaces = None self._workspace_project_cache = WorkspaceProjectCache() self._cascache = None |