Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
safe load for yaml (#17399)
Browse files Browse the repository at this point in the history
* safe load for yaml

* Trigger notification
  • Loading branch information
ChaiBapchya authored and apeforest committed Jan 28, 2020
1 parent 0886d6c commit 6fc322a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(self, cmake_options_yaml=DEFAULT_CMAKE_OPTIONS, cmake_options_yaml_
def read_config(self):
assert os.path.isfile(self.cmake_options_yaml)
with open(self.cmake_options_yaml, 'r') as f:
self.cmake_options = yaml.load(f)
self.cmake_options = yaml.safe_load(f)

def _cmdlineflags(self):
res = []
Expand Down

0 comments on commit 6fc322a

Please sign in to comment.