From beb29f6d555431bdad75238607adb9a6dfe135bb Mon Sep 17 00:00:00 2001 From: One-Nub <38899321+One-Nub@users.noreply.github.com> Date: Fri, 9 Aug 2019 01:30:05 -0500 Subject: [PATCH] Defining a specific YAML loader As per using one of the "'sugar' methods" mentioned in https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation#how-to-disable-the-warning --- disco/util/serializer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disco/util/serializer.py b/disco/util/serializer.py index de6264a..f842ecc 100644 --- a/disco/util/serializer.py +++ b/disco/util/serializer.py @@ -21,8 +21,8 @@ class Serializer(object): @staticmethod def yaml(): - from yaml import load, dump - return (load, dump) + from yaml import full_load, dump + return (full_load, dump) @staticmethod def pickle():