Update check-licenses.py (#11269)

This commit is contained in:
Prashanth Sagar 2021-05-20 02:22:00 +05:30 committed by GitHub
parent 933350d106
commit 4c3077390f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ def check_licenses(license_yaml, dependency_reports_root):
# Determine if it's druid core or an extension
druid_module_name = find_druid_module_name(dirpath)
print_log_to_stderr("Parsing {}".format(full_path))
with open(full_path) as report_file:
with open(full_path, encoding="utf-8") as report_file:
parser = DependencyReportParser(druid_module_name, compatible_license_names)
reported_dep_to_licenses.update(parser.parse(report_file))