in core/util.py [0:0]
def serialize_yaml(file, state):
import yaml
try:
# use the LibYAML C library bindings if available
from yaml import CDumper as Dumper
except ImportError:
from yaml import Dumper
yaml.dump(state, file, Dumper=Dumper)