Skip to content

Commit 4c6eaec

Browse files
committed
rename variable to from lineend to line_end
Signed-off-by: Miaofei <[email protected]>
1 parent 2efa973 commit 4c6eaec

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ros2topic/ros2topic/verb/info.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,25 @@ def main(self, *, args):
4646
else:
4747
return "Unknown topic '%s'" % topic_name
4848

49-
lineend = '\n'
49+
line_end = '\n'
5050
if args.verbose:
51-
lineend = '\n\n'
51+
line_end = '\n\n'
5252

5353
type_str = topic_types[0] if len(topic_types) == 1 else topic_types
54-
print('Type: %s' % type_str, end=lineend)
54+
print('Type: %s' % type_str, end=line_end)
5555

56-
print('Publisher count: %d' % node.count_publishers(topic_name), end=lineend)
56+
print('Publisher count: %d' % node.count_publishers(topic_name), end=line_end)
5757
if args.verbose:
5858
try:
5959
for info in node.get_publishers_info_by_topic(topic_name):
60-
print(info, end=lineend)
60+
print(info, end=line_end)
6161
except NotImplementedError as e:
6262
return str(e)
6363

6464
print('Subscription count: %d' % node.count_subscribers(topic_name))
6565
if args.verbose:
6666
try:
6767
for info in node.get_subscriptions_info_by_topic(topic_name):
68-
print(info, end=lineend)
68+
print(info, end=line_end)
6969
except NotImplementedError as e:
7070
return str(e)

0 commit comments

Comments
 (0)