1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 15:59:17 +01:00

Fix deprecation in YAML parsing

This commit is contained in:
Andrea Cardaci 2019-07-29 16:33:44 +02:00
parent a7798bcfe2
commit ebe1181b75

@ -7,7 +7,7 @@ import yaml
def parse_yaml(path):
with open(path) as fs:
text = fs.read()
return yaml.load_all(text)
return yaml.load_all(text, Loader=yaml.SafeLoader)
def build_schema():
function_names = next(parse_yaml('_data/functions.yml')).keys()