Commit 84f0d787 authored by Jean Matthieu Haussaire's avatar Jean Matthieu Haussaire
Browse files

Add some yml functionality implemented in the master branch

parent ec2fd106
......@@ -15,4 +15,16 @@ def ordered_load(stream, Loader=yaml.SafeLoader, object_pairs_hook=OrderedDict):
# define custom tag handler
def join(loader, node):
seq = loader.construct_sequence(node)
return ''.join([str(i) for i in seq])
# end function join
# register the tag handler
OrderedLoader.add_constructor('!join', join)
return yaml.load(stream, OrderedLoader)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment