Missing Loader parameter in generate-binary-license and generate-binary-notice py scripts (#11815)

This commit is contained in:
David Ferlay 2021-10-19 20:55:17 +02:00 committed by GitHub
parent 187df58e30
commit a7ee646927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ def generate_license(apache_license_v2, license_yaml):
# Print Apache license first.
print_outfile(apache_license_v2)
with open(license_yaml, encoding='utf-8') as registry_file:
licenses_list = list(yaml.load_all(registry_file))
licenses_list = list(yaml.load_all(registry_file, Loader=yaml.FullLoader))
# Group licenses by license_name, license_category, and then module.
licenses_map = {}

View File

@ -57,7 +57,7 @@ def generate_notice(source_notice, dependences_yaml):
# Print Apache license first.
print_outfile(source_notice)
with open(dependences_yaml, encoding='utf-8') as registry_file:
dependencies = list(yaml.load_all(registry_file))
dependencies = list(yaml.load_all(registry_file, Loader=yaml.FullLoader))
# Group dependencies by module
modules_map = defaultdict(list)