From 4c3077390f6ee9b7ad27e57957a18788efdc172a Mon Sep 17 00:00:00 2001 From: Prashanth Sagar Date: Thu, 20 May 2021 02:22:00 +0530 Subject: [PATCH] Update check-licenses.py (#11269) --- distribution/bin/check-licenses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/bin/check-licenses.py b/distribution/bin/check-licenses.py index b856ee31ce5..50151b2a4a6 100755 --- a/distribution/bin/check-licenses.py +++ b/distribution/bin/check-licenses.py @@ -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))