Skip to content

Commit

Permalink
try yaml.safe_load
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Mar 26, 2021
1 parent ccf77df commit ca0504d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyhf/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def options_from_eqdelimstring(opts):
document = '\n'.join(
f"{opt.split('=', 1)[0]}: {opt.split('=', 1)[1]}" for opt in opts
)
return yaml.full_load(document)
return yaml.safe_load(document)


class EqDelimStringParamType(click.ParamType):
Expand Down

0 comments on commit ca0504d

Please sign in to comment.