Skip to content

Commit b0c176d

Browse files
committed
lint
1 parent c8a8ec5 commit b0c176d

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/roslibpy/core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import json
44
import logging
5-
import time
65
import threading
6+
import time
77
from enum import Enum
88

99
# Python 2/3 compatibility import list
@@ -604,7 +604,7 @@ def _internal_errback(err):
604604

605605
def cancel_goal(self, goal_id):
606606
"""Cancel an ongoing action.
607-
607+
608608
NOTE: Async cancelation is not yet supported on rosbridge (rosbridge_suite issue #909)
609609
610610
Args:
@@ -641,6 +641,7 @@ def wait_goal(self, goal_id, timeout=None):
641641

642642
self.wait_results.pop(goal_id, None)
643643

644+
644645
class Param(object):
645646
"""A ROS parameter.
646647

tests/ros2/test_actions.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import time
44

5-
from roslibpy import Ros
6-
from roslibpy import ActionClient, ActionGoal, ActionGoalStatus
5+
from roslibpy import ActionClient, ActionGoal, ActionGoalStatus, Ros
6+
77

88
def test_fibonacci():
99
ros = Ros("127.0.0.1", 9090)
@@ -31,12 +31,13 @@ def on_error(error):
3131
goal_id = action.send_goal(goal, on_result, on_feedback, on_error)
3232
action.wait_goal(goal_id)
3333
time.sleep(0.2)
34-
34+
3535
assert results["result"]["values"]["sequence"] == [0, 1, 1, 2, 3]
3636
assert results["result"]["status"] == ActionGoalStatus.SUCCEEDED
3737

3838
ros.close()
3939

40+
4041
def test_cancel():
4142
ros = Ros("127.0.0.1", 9090)
4243
ros.run()
@@ -70,5 +71,6 @@ def on_error(error):
7071

7172
ros.close()
7273

74+
7375
if __name__ == "__main__":
74-
test_cancel()
76+
test_cancel()

0 commit comments

Comments
 (0)