Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def yaml_dump(value):
"""Returns a representation of values directly usable by bash.
Literal types are quoted and safe to use as YAML.
"""
return yaml.dump(value, default_flow_style=False,
Dumper=ShyamlSafeDumper)