@@ -0,0 +1,17 @@
+# pylint: disable=unused-import
+from __future__ import absolute_import
+
+from functools import partial
+
+from yaml import dump as dump_
+from yaml import load as load_
+from yaml import FullLoader
+
+try:
+    from yaml import YAMLError
+except ImportError:
+    YAMLError = ValueError
+
+dump = dump_
+
+load = partial(load_, Loader=FullLoader)
This will fail on older versions of PyYAML. I suspect we should just use `yaml.safe_load` instead of `yaml.load(Loader=...)` -- this is a semantic change, but we never intended to support YAML serialization of anything other than literals (YAML representations are intended to be interchangeable with JSON/GraphQL query throughout).