Skip to content

Commit

Permalink
yaml: update load functions
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalEgn committed Sep 17, 2024
1 parent fdd31e0 commit 7f02312
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jsonschema2rst/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def schema2rst(schema_file, excluded_key):
change_extension(schema_file.name, JSON_EXTENSION)))

rst = RST_DIRECTIVES
TreeNode.dict2tree(yaml.load(schema_file), tree, excluded_key)
TreeNode.dict2tree(yaml.full_load(schema_file), tree, excluded_key)
rst += _traverse_bfs(tree, _node2rst)
return rst

Expand Down
2 changes: 1 addition & 1 deletion jsonschema2rst/tree_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def improve_parent(obj, node):
temp.write(response.read())

with open(filename) as temp:
schema = yaml.load(temp)
schema = yaml.full_load(temp)
tree = TreeNode("Test_Hep_Schema")
TreeNode.dict2tree(schema, tree)
print(tree)
Expand Down

0 comments on commit 7f02312

Please sign in to comment.