Replace yaml.load() to yaml.safe_load()

Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
Hideki Saito 2021-10-21 00:41:57 +09:00
parent 6d3e188c4c
commit 47e99ffca5

View file

@ -125,7 +125,7 @@ class SynchronizeTester(object):
metapath = os.path.join(fixturepath, 'meta.yaml') metapath = os.path.join(fixturepath, 'meta.yaml')
with open(metapath, 'rb') as f: with open(metapath, 'rb') as f:
fdata = f.read() fdata = f.read()
test_meta = yaml.load(fdata) test_meta = yaml.safe_load(fdata)
# load initial play context vars # load initial play context vars
if '_play_context' in test_meta: if '_play_context' in test_meta: