Skip to content

Commit

Permalink
Strip for boolean rosparam
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed May 25, 2017
1 parent 412d56e commit c907f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/roslaunch/src/roslaunch/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def convert_value(value, type_):
elif type_ == 'double':
return float(value)
elif type_ == 'bool' or type_ == 'boolean':
value = value.lower()
value = value.lower().strip()
if value == 'true' or value == '1':
return True
elif value == 'false' or value == '0':
Expand Down

0 comments on commit c907f36

Please sign in to comment.