[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 <[email protected]>
This commit is contained in:
Bernd Waibel
2021-05-06 19:52:20 +02:00
committed by Bernd Hahnebach
parent 9a5eefaec8
commit 20e756306d
+1 -1
View File
@@ -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(