Merge "Use YAML safe_load_all"

This commit is contained in:
Zuul 2019-03-15 00:03:52 +00:00 committed by Gerrit Code Review
commit 1f7fa14032
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ class LibraryService (data_service.DataService):
doc_num_in_file = 0
file_error = False
with open(full_path, "r") as stream:
policies = yaml.load_all(stream)
policies = yaml.safe_load_all(stream)
for policy in policies:
try:
doc_num_in_file += 1