def dump_yaml(data, Dumper=_Dumper, default_flow_style=False):
content = yaml.dump(data,<EOL>default_flow_style=default_flow_style,<EOL>Dumper=Dumper)<EOL>return content.strip()<EOL>
Returns data as yaml-formatted string.