Skip to content
Snippets Groups Projects

Allow 'None' as a default_value for _yaml.node_get

Merged Tristan Maat requested to merge node-get-default into master
All threads resolved!
9 files
+ 32
27
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -62,7 +62,7 @@ class Option():
# the option
def load(self, node):
self.description = _yaml.node_get(node, str, 'description')
self.variable = _yaml.node_get(node, str, 'variable', default_value='') or None
self.variable = _yaml.node_get(node, str, 'variable', default_value=None)
# Assert valid symbol name for variable name
if self.variable:
Loading