diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2018-11-14 12:47:54 +0000 |
---|---|---|
committer | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2018-11-20 11:17:38 +0000 |
commit | b498cce79bb536eb4ea70ff8588588f647001c4a (patch) | |
tree | b18d0bea2fffcf7051059a66d8ad45dc769cf6e9 | |
parent | 3f663d82415c17f21a2c6216a317aea4aee1608a (diff) | |
download | buildstream-b498cce79bb536eb4ea70ff8588588f647001c4a.tar.gz |
_yaml: document node_get()'s default_value arg
-rw-r--r-- | buildstream/_yaml.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py index f44572ca5..c8f11bc96 100644 --- a/buildstream/_yaml.py +++ b/buildstream/_yaml.py @@ -351,6 +351,7 @@ _sentinel = object() # expected_type (type): The expected type for the value being searched # key (str): The key to get a value for in node # indices (list of ints): Optionally decend into lists of lists +# default_value: Optionally return this value if the key is not found # # Returns: # The value if found in node, otherwise default_value is returned |