Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 457 Bytes
"""
@file
@brief Puts everything related to package :epkg:`yaml` in a separate files.
"""
import yaml
try:
from yaml import CLoader as Loader
except ImportError:
Loader = None
def yaml_load(content):
"""
Parses a :epkg:`yml` file with :epkg:`yaml`.
@param content string
@return structured data
"""
if Loader is None:
return yaml.load(content)
return yaml.load(content, Loader=Loader)
You can’t perform that action at this time.