Skip to content

Commit

Permalink
Merge pull request #14 from j-b-d/specify-yaml-loader
Browse files Browse the repository at this point in the history
Includes fix wherein `yaml.load` requires `Loader` keyword argument.

Ref.: yaml/pyyaml#576 (looks like it's intended and won't be fixed)
  • Loading branch information
initialed85 authored Mar 1, 2022
2 parents 0415b88 + a70e6cc commit b5fe74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party_license_file_generator/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
license_overrides = {}
if args.license_override_file is not None:
with codecs.open(args.license_override_file, "r", "utf-8") as f:
license_overrides = yaml.load(f.read())
license_overrides = yaml.load(f.read(), Loader=yaml.SafeLoader)

for module_name, license_override in license_overrides.items():
license_name = license_override.get("license_name")
Expand Down

0 comments on commit b5fe74b

Please sign in to comment.