Skip to content

Commit

Permalink
Pylint and grammar fixes for listener.py
Browse files Browse the repository at this point in the history
- whitespace cleanup
- spaces around operators and following commas
- Punctuation / grammar in comments.
  • Loading branch information
iandanforth committed Dec 7, 2014
1 parent 52f03a9 commit e778d30
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rospy_tutorials/001_talker_listener/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
from std_msgs.msg import String

def callback(data):
rospy.loginfo(rospy.get_caller_id()+"I heard %s",data.data)
rospy.loginfo(rospy.get_caller_id() + "I heard %s", data.data)

def listener():

# in ROS, nodes are unique named. If two nodes with the same
# node are launched, the previous one is kicked off. The
# In ROS, nodes are uniquely named. If two nodes with the same
# node are launched, the previous one is kicked off. The
# anonymous=True flag means that rospy will choose a unique
# name for our 'talker' node so that multiple talkers can
# run simultaenously.
Expand All @@ -55,6 +55,6 @@ def listener():

# spin() simply keeps python from exiting until this node is stopped
rospy.spin()

if __name__ == '__main__':
listener()

0 comments on commit e778d30

Please sign in to comment.