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 FullLoader as Loader
except ImportError:  # pragma: no cover
    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) return yaml.load(content, Loader=Loader)