Skip to content

Commit

Permalink
Merge pull request #17 from jcrivenaes/yaml-load
Browse files Browse the repository at this point in the history
Changes YAML loader from full_load to safe_load
  • Loading branch information
jcrivenaes authored Jul 30, 2019
2 parents 619322b + 523b5a2 commit 9437ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xtgeo_utils2/avghc/_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def include_from(self, node):

if isinstance(node, yaml.ScalarNode):
filename, val = self.construct_scalar(node).split('::')
result = yaml.full_load(open(filename, 'r'))
result = yaml.safe_load(open(filename, 'r'))
self._root = oldroot

fields = val.strip().split('.')
Expand Down

0 comments on commit 9437ded

Please sign in to comment.