Browse code

Use yaml.safe_load() instead of yaml.load().

This fixes an old pyyaml warning:
"calling yaml.load() without Loader=... is deprecated"
... and makes combinedfs work again with a modern version of it.

Xavier G. authored on07/11/2023 18:04:16
Showing1 changed files

... ...
@@ -54,7 +54,7 @@ class CombinedFSConfiguration(object):
54 54
 
55 55
 	def read_conf(self, conf_path):
56 56
 		with open(conf_path) as conf_file:
57
-			conf = yaml.load(conf_file.read())
57
+			conf = yaml.safe_load(conf_file.read())
58 58
 			self.apply_conf(conf)
59 59
 			self.path = conf_path
60 60