-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use yaml.safe_load (round2) #229
Conversation
Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
ros2param/ros2param/api/__init__.py
Outdated
@@ -24,7 +24,7 @@ def get_parameter_value(*, string_value): | |||
"""Guess the desired type of the parameter based on the string value.""" | |||
value = ParameterValue() | |||
try: | |||
yaml_value = yaml.load(string_value) | |||
yaml_value = yaml.stafe_load(string_value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stafe_load
-> safe_load
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aaarg, sorry about that 😖 fat fingers
Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
PR job covered linters, so I'm merging since a couple local tests LGTM (at least the issues they show aren't caused by this PR)
|
The importlib_metadata package is a backport of the importlib.metadata module from Python 3.8. We should prefer the one coming from Python itself, and fall back to the backport if Python doesn't provide it. Since this could mean an additional dependency on some platforms, we should also declare that dependency. Signed-off-by: Scott K Logan <logans@cottsay.net>
Follow-up of #212 for uses of
yaml.load
introduced since