Use YAML safe_load_all

The arbitrarily powerful YAML load_all is not necessary.

Change-Id: I3db0e10d0317ab3bd96a4480308b5661da4691c9
Closes-Bug: 1819211
This commit is contained in:
Eric K 2019-03-08 11:29:53 -08:00 committed by Eric Kao
parent 0c537831db
commit 4752a6fdcf
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