INNER CODE UNIT · Python

yaml_dump

mongodb/mongo-c-driver · .evergreen/legacy_config_generator/evergreen_config_generator/__init__.py:85

def yaml_dump(obj: Any):
    return yaml.dump(obj, Dumper=_Dumper, default_flow_style=False)


def generate(config: Any, path: str):
    """Dump config to a file as YAML.
    config is a dict, preferably an OrderedDict. path is a file path.
    """
    f = open(path, 'w+')
    f.write(
        """####################################
# Evergreen configuration
#
# Generated with evergreen_config_generator from
# github.com/mongodb-labs/drivers-evergreen-tools
#
# DO NOT EDIT THIS FILE
#

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…