wmlunits: fixed a deprecation warning

This commit is contained in:
Elvish_Hunter 2021-12-06 17:49:53 +01:00
parent e02cb3f8c2
commit 1b65d08c37

View file

@ -264,7 +264,7 @@ def list_contents():
pass
try:
batchlist = yaml.load(open(options.list))
batchlist = yaml.safe_load(open(options.list))
except IOError:
batchlist = []
@ -431,7 +431,7 @@ def process_campaign_or_era(addon, cid, define, batchlist):
return n
def batch_process():
batchlist = yaml.load(open(options.batch))
batchlist = yaml.safe_load(open(options.batch))
for addon in batchlist:
name = addon["name"]