diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2019-07-05 15:17:20 +0100 |
---|---|---|
committer | Angelos Evripiotis <angelos.evripiotis@gmail.com> | 2019-07-09 20:48:09 +0000 |
commit | 5781dd9ebcb924ba64f73d746a78402f7e44c7e5 (patch) | |
tree | f0e605167c3b99ce6e60da6498ded10b2623d637 /src/buildstream/_options | |
parent | ed6cee5bb5b234c8ae3c5f35834b1737c156cc94 (diff) | |
download | buildstream-5781dd9ebcb924ba64f73d746a78402f7e44c7e5.tar.gz |
Option: rm unused self.description
Diffstat (limited to 'src/buildstream/_options')
-rw-r--r-- | src/buildstream/_options/option.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/buildstream/_options/option.py b/src/buildstream/_options/option.py index ffdb4d272..511678749 100644 --- a/src/buildstream/_options/option.py +++ b/src/buildstream/_options/option.py @@ -45,7 +45,6 @@ class Option(): def __init__(self, name, definition, pool): self.name = name - self.description = None self.variable = None self.value = None self.pool = pool @@ -60,7 +59,11 @@ class Option(): # node (dict): The loaded YAML dictionary describing # the option def load(self, node): - self.description = _yaml.node_get(node, str, 'description') + + # We don't use the description, but we do require that options have a + # description. + _yaml.node_get(node, str, 'description') + self.variable = _yaml.node_get(node, str, 'variable', default_value=None) # Assert valid symbol name for variable name |