Skip to content

Commit

Permalink
ensure ros2 interface show has trailing newline (#368)
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Thomas <[email protected]>
  • Loading branch information
dirk-thomas authored Oct 17, 2019
1 parent 780923c commit 4cfb8b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ros2action/ros2action/verb/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ def main(self, *, args):
except LookupError as e:
return str(e)
with open(path, 'r') as action_file:
print(action_file.read(), end='')
print(action_file.read().rstrip())
2 changes: 1 addition & 1 deletion ros2interface/ros2interface/verb/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ def main(self, *, args):
except LookupError as e:
return str(e)
with open(file_path, 'r', encoding='utf-8') as h:
print(h.read(), end='')
print(h.read().rstrip())
2 changes: 1 addition & 1 deletion ros2msg/ros2msg/verb/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ def main(self, *, args):
except LookupError as e:
return str(e)
with open(path, 'r') as h:
print(h.read(), end='')
print(h.read().rstrip())
2 changes: 1 addition & 1 deletion ros2srv/ros2srv/verb/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ def main(self, *, args):
except LookupError as e:
return str(e)
with open(path, 'r') as h:
print(h.read(), end='')
print(h.read().rstrip())

0 comments on commit 4cfb8b9

Please sign in to comment.