Skip to content

Commit

Permalink
Changes YAML loader from full_load to safe_load
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrivenaes committed Jul 30, 2019
1 parent 619322b commit 523b5a2
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 523b5a2

Please sign in to comment.