def dump_yaml(data, file_handle):
"""Wrapper function to nicely dump dictionaries as yaml files.
"""
assert(yaml is not None), "\nError: ruamel yaml python package not found."
yaml.dump(data, file_handle, Dumper=yaml.RoundTripDumper)
评论列表
文章目录