YAML: use Loaders and safe_load (#11910)

This commit is contained in:
Alexis Paques
2019-07-10 15:15:29 +02:00
committed by Beat Küng
parent 6da8ce94f1
commit 453ecfeb55
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ class Classifier():
"""
try:
with open(yaml_file, 'r') as f:
return yaml.load(f)
return yaml.load(f, Loader=yaml.FullLoader)
except OSError as e:
if e.errno == errno.ENOENT:
raise IOError(errno.ENOENT, os.strerror(