Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 457 Bytes
@brief Puts everything related to package :epkg:`yaml` in a separate files.
import yaml
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.