This is an automated email from the ASF dual-hosted git repository.

abhishek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new a7ee646  Missing Loader parameter in generate-binary-license and 
generate-binary-notice py scripts (#11815)
a7ee646 is described below

commit a7ee646927cfbdfc7d68f899ac0a0b90fd91812d
Author: David Ferlay <[email protected]>
AuthorDate: Tue Oct 19 20:55:17 2021 +0200

    Missing Loader parameter in generate-binary-license and 
generate-binary-notice py scripts (#11815)
---
 distribution/bin/generate-binary-license.py | 2 +-
 distribution/bin/generate-binary-notice.py  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/distribution/bin/generate-binary-license.py 
b/distribution/bin/generate-binary-license.py
index e69bc70..e08fe04 100755
--- a/distribution/bin/generate-binary-license.py
+++ b/distribution/bin/generate-binary-license.py
@@ -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 = {}
diff --git a/distribution/bin/generate-binary-notice.py 
b/distribution/bin/generate-binary-notice.py
index a777881..5ab1d7c 100755
--- a/distribution/bin/generate-binary-notice.py
+++ b/distribution/bin/generate-binary-notice.py
@@ -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)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to