diff --git a/lib/yaml/constructor.py b/lib/yaml/constructor.py index 619acd307..897dc4311 100644 --- a/lib/yaml/constructor.py +++ b/lib/yaml/constructor.py @@ -476,6 +476,10 @@ def construct_undefined(self, node): 'tag:yaml.org,2002:map', SafeConstructor.construct_yaml_map) +SafeConstructor.add_constructor( + 'tag:yaml.org,2002:value', + SafeConstructor.construct_yaml_str) + SafeConstructor.add_constructor(None, SafeConstructor.construct_undefined)