Source code for pyquickhelper.jenkinshelper.yaml_helper_yaml

"""
Puts everything related to package :epkg:`yaml` in a separate files.


:githublink:`%|py|5`
"""
import yaml
try:
    from yaml import CLoader as Loader
except ImportError:
    Loader = None


[docs]def yaml_load(content): """ Parses a :epkg:`yml` file with :epkg:`yaml`. :param content: string :return: structured data :githublink:`%|py|18` """ if Loader is None: return yaml.load(content) else: return yaml.load(content, Loader=Loader)