Skip to content

Commit

Permalink
Fix ros#1833 change unsafe yaml.load to yaml.safe_load
Browse files Browse the repository at this point in the history
  • Loading branch information
maximest-pierre committed Nov 10, 2019
1 parent 5da095d commit 481ad19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rosparam/src/rosparam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def set_param(param, value, verbose=False):
:param param: parameter name, ``str``
:param value: yaml-encoded value, ``str``
"""
set_param_raw(param, yaml.load(value), verbose=verbose)
set_param_raw(param, yaml.safe_load(value), verbose=verbose)

def upload_params(ns, values, verbose=False):
"""
Expand Down

0 comments on commit 481ad19

Please sign in to comment.