Switch to safeloader
Seems like we do not use any custom data structures in yaml
This commit is contained in:
@@ -10,7 +10,7 @@ import os
|
||||
|
||||
|
||||
with open("version.yml", 'r+') as file:
|
||||
data = yaml.load(file, Loader=yaml.FullLoader)
|
||||
data = yaml.load(file, Loader=yaml.SafeLoader)
|
||||
file.seek(0)
|
||||
file.truncate()
|
||||
# todo: run Version() on the tag to ensure that it's of proper formatting - fail a test if not and prevent building
|
||||
|
||||
@@ -10,7 +10,7 @@ import json
|
||||
iconDict = {}
|
||||
|
||||
stream = open('iconIDs.yaml', 'r')
|
||||
docs = yaml.load_all(stream, Loader=yaml.FullLoader)
|
||||
docs = yaml.load_all(stream, Loader=yaml.SafeLoader)
|
||||
|
||||
for doc in docs:
|
||||
for k,v in list(doc.items()):
|
||||
|
||||
Reference in New Issue
Block a user