mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +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):
|
def parse_yaml(path):
|
||||||
with open(path) as fs:
|
with open(path) as fs:
|
||||||
text = fs.read()
|
text = fs.read()
|
||||||
return yaml.load_all(text)
|
return yaml.load_all(text, Loader=yaml.SafeLoader)
|
||||||
|
|
||||||
def build_schema():
|
def build_schema():
|
||||||
function_names = next(parse_yaml('_data/functions.yml')).keys()
|
function_names = next(parse_yaml('_data/functions.yml')).keys()
|
||||||
|
Loading…
Reference in New Issue
Block a user