From 76ce457d687560c526bbd4605b436a9c9deb93c8 Mon Sep 17 00:00:00 2001 From: Mike Kazantsev Date: Fri, 17 Jan 2020 10:33:58 +0500 Subject: [PATCH] rrd-sensors-logger: use yaml.safe_load --- rrd-sensors-logger | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rrd-sensors-logger b/rrd-sensors-logger index 14d4483a..61798f21 100755 --- a/rrd-sensors-logger +++ b/rrd-sensors-logger @@ -69,7 +69,7 @@ import yaml, lya, rrdtool p = lambda fmt,*a,**k: print(fmt.format(*a, **k), file=sys.stderr) types_str = types.StringTypes -yaml_load = yaml.load +yaml_load = yaml.safe_load yaml_dump = lambda data, dst:\ yaml.safe_dump(data, dst, allow_unicode=True, default_flow_style=False) yaml.SafeDumper.add_representer(lya.AttrDict, yaml.SafeDumper.represent_dict)