mirror of
https://github.com/NotAShelf/Basix.git
synced 2026-06-10 07:10:02 +00:00
convert-scheme: do not allow arbitrary python code execution
Probably not relevant, but there doesn't seem to be a reason to use the full loader as far as I can tell...
This commit is contained in:
parent
def3e8ace1
commit
6a8a32d3a8
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ pkgs.writers.writePython3Bin "convert-scheme" {
|
|||
|
||||
def yaml_to_json(yaml_file, json_file):
|
||||
with open(yaml_file, 'r') as yml_file:
|
||||
data = yaml.load(yml_file, Loader=yaml.FullLoader)
|
||||
data = yaml.safe_load(yml_file)
|
||||
|
||||
with open(json_file, 'w') as json_file:
|
||||
json.dump(data, json_file, indent=4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue