ensure that yaml.load is safe and avoid a deprecation warning (see https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation)
Daniel Kahn Gillmor
3 years ago
1 changed file(s) with
1 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-1
dev/rust-excuses.py
less
more
21
21
22
22
print("parsing excuses.yaml...", file=sys.stderr)
23
23
with open("excuses.yaml") as fp:
24
y = yaml.load(fp)
24
y = yaml.load(fp, Loader=yaml.FullLoader)
25
25
26
26
excuses = {}
27
27
for e in y["sources"]: