mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
Fix deprecation in YAML parsing
This commit is contained in:
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()
|
||||
|
Loading…
Reference in New Issue
Block a user