def regular_load(stream, loader=yaml.loader.Loader):
# LOAD fails if more than one document is there
# return yaml.load(fh)
# LOAD ALL gets more than one document inside the file
# gen = yaml.load_all(fh)
return yaml.load_all(stream, loader)
评论列表
文章目录