diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2018-10-26 11:09:43 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2018-10-26 13:19:58 +0100 |
commit | f069d82fd7520caac9e97b10fb89cc39601fd99e (patch) | |
tree | 97527636fe178055622b2a695b92dd83a93433f2 /buildstream/plugin.py | |
parent | 1eb993bf32e30c7a63870a5c358d36e141d13b7a (diff) | |
download | buildstream-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.py | 2 |
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. |