mirror of https://github.com/apache/druid.git
Missing Loader parameter in generate-binary-license and generate-binary-notice py scripts (#11815)
This commit is contained in:
parent
187df58e30
commit
a7ee646927
|
@ -137,7 +137,7 @@ def generate_license(apache_license_v2, license_yaml):
|
||||||
# Print Apache license first.
|
# Print Apache license first.
|
||||||
print_outfile(apache_license_v2)
|
print_outfile(apache_license_v2)
|
||||||
with open(license_yaml, encoding='utf-8') as registry_file:
|
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.
|
# Group licenses by license_name, license_category, and then module.
|
||||||
licenses_map = {}
|
licenses_map = {}
|
||||||
|
|
|
@ -57,7 +57,7 @@ def generate_notice(source_notice, dependences_yaml):
|
||||||
# Print Apache license first.
|
# Print Apache license first.
|
||||||
print_outfile(source_notice)
|
print_outfile(source_notice)
|
||||||
with open(dependences_yaml, encoding='utf-8') as registry_file:
|
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
|
# Group dependencies by module
|
||||||
modules_map = defaultdict(list)
|
modules_map = defaultdict(list)
|
||||||
|
|
Loading…
Reference in New Issue