From 20e756306d9aa624fcbf465f0345d721673ce720 Mon Sep 17 00:00:00 2001 From: Bernd Waibel Date: Wed, 28 Apr 2021 22:08:19 +0200 Subject: [PATCH] [Fem] fix femtest failure with yaml.load Solves an issue with using an outdated call to yaml.load as described in https://forum.freecadweb.org/viewtopic.php?f=10&t=57617 Signed-off-by: Bernd Waibel --- src/Mod/Fem/feminout/importYamlJsonMesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Fem/feminout/importYamlJsonMesh.py b/src/Mod/Fem/feminout/importYamlJsonMesh.py index 98862489dd6c..43820c14acc5 100644 --- a/src/Mod/Fem/feminout/importYamlJsonMesh.py +++ b/src/Mod/Fem/feminout/importYamlJsonMesh.py @@ -162,7 +162,7 @@ def read( or fileExtension.lower() == ".yml" ) and has_yaml: fp = pyopen(fileString, "rt") - raw_mesh_data = yaml.load(fp) + raw_mesh_data = yaml.load(fp, Loader=yaml.SafeLoader) fp.close() else: Console.PrintError(