mirror of https://github.com/apache/druid.git
Open the licenses.yaml with an explicit encoding (#9462)
This commit is contained in:
parent
32cd47bc8e
commit
64afc05080
|
@ -323,8 +323,8 @@ def check_licenses(license_yaml, dependency_reports_root):
|
|||
# Build registered license dictionary.
|
||||
registered_dep_to_licenses = {}
|
||||
skipping_licenses = {}
|
||||
with open(license_yaml) as registry_file:
|
||||
licenses_list = list(yaml.load_all(registry_file))
|
||||
with open(license_yaml, encoding='utf-8') as registry_file:
|
||||
licenses_list = list(yaml.load_all(registry_file, Loader=yaml.FullLoader))
|
||||
for license in licenses_list:
|
||||
if 'libraries' in license:
|
||||
for library in license['libraries']:
|
||||
|
|
Loading…
Reference in New Issue