Skip to content

Commit b5fe74b

Browse files
authored
Merge pull request #14 from j-b-d/specify-yaml-loader
Includes fix wherein `yaml.load` requires `Loader` keyword argument. Ref.: yaml/pyyaml#576 (looks like it's intended and won't be fixed)
2 parents 0415b88 + a70e6cc commit b5fe74b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party_license_file_generator/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
license_overrides = {}
132132
if args.license_override_file is not None:
133133
with codecs.open(args.license_override_file, "r", "utf-8") as f:
134-
license_overrides = yaml.load(f.read())
134+
license_overrides = yaml.load(f.read(), Loader=yaml.SafeLoader)
135135

136136
for module_name, license_override in license_overrides.items():
137137
license_name = license_override.get("license_name")

0 commit comments

Comments
 (0)