mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 22:42:26 +01:00
tools: update ss13_genchangelog to use yaml safeloder
This commit is contained in:
@@ -152,7 +152,7 @@ for fileName in glob.glob(os.path.join(args.ymlDir, "*.yml")):
|
||||
print(' Reading {}...'.format(fileName))
|
||||
cl = {}
|
||||
with open(fileName, 'r') as f:
|
||||
cl = yaml.load(f)
|
||||
cl = yaml.load(f, Loader=yaml.SafeLoader)
|
||||
f.close()
|
||||
if cl['author'] == 'ChangeMe':
|
||||
print(' {0}: Invalid author {1}'.format(fileName, cl['author']), file=sys.stderr)
|
||||
|
||||
Reference in New Issue
Block a user