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:
parent
0c537831db
commit
4752a6fdcf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue