tools: update ss13_genchangelog again

This commit is contained in:
Werner
2022-11-01 16:56:52 +01:00
parent 939474c501
commit 605ecd05e1

View File

@@ -80,7 +80,7 @@ failed_cache_read = True
if os.path.isfile(changelog_cache):
try:
with open(changelog_cache) as f:
(_, all_changelog_entries) = yaml.load_all(f, yaml.FullLoader)
(_, all_changelog_entries) = yaml.load_all(f, yaml.SafeLoader)
failed_cache_read = False
# Convert old timestamps to newer format.
@@ -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, Loader=yaml.FullLoader)
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)