summaryrefslogtreecommitdiff
path: root/buildstream/plugin.py
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-10-26 11:09:43 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-10-26 13:19:58 +0100
commitf069d82fd7520caac9e97b10fb89cc39601fd99e (patch)
tree97527636fe178055622b2a695b92dd83a93433f2 /buildstream/plugin.py
parent1eb993bf32e30c7a63870a5c358d36e141d13b7a (diff)
downloadbuildstream-f069d82fd7520caac9e97b10fb89cc39601fd99e.tar.gz
various: Move _sentinel from utils.py to _yaml.py
The `_sentinel` in `utils.py` was used only for yaml node tracking. As such, simplify matters by removing it from `utils.py` and move it to `_yaml.py` which means that we no longer need to try and avoid a circular import issue by means of runtime importing. Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
Diffstat (limited to 'buildstream/plugin.py')
-rw-r--r--buildstream/plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/plugin.py b/buildstream/plugin.py
index 9c5c0d8ca..1b021d4b4 100644
--- a/buildstream/plugin.py
+++ b/buildstream/plugin.py
@@ -321,7 +321,7 @@ class Plugin():
provenance = _yaml.node_get_provenance(node, key=member_name)
return str(provenance)
- def node_get_member(self, node, expected_type, member_name, default=utils._sentinel):
+ def node_get_member(self, node, expected_type, member_name, default=_yaml._sentinel):
"""Fetch the value of a node member, raising an error if the value is
missing or incorrectly typed.