Skip to content

Commit

Permalink
rrd-sensors-logger: use yaml.safe_load
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-fg committed Jan 17, 2020
1 parent 9d6373d commit 76ce457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rrd-sensors-logger
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 76ce457

Please sign in to comment.