Commit fa490d59 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[Python] fix syntax

parent fa43f3ca
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
# flake8: noqa # flake8: noqa
import sys import sys
import rospy
from dynamic_graph_bridge_msgs.srv import * from dynamic_graph_bridge_msgs.srv import *
import rospy
from std_srvs.srv import * from std_srvs.srv import *
try: try:
...@@ -19,10 +20,10 @@ def launchScript(code, title, description=""): ...@@ -19,10 +20,10 @@ def launchScript(code, title, description=""):
rospy.loginfo(code) rospy.loginfo(code)
for line in code: for line in code:
if line != '' and line[0] != '#': if line != '' and line[0] != '#':
print line print(line)
answer = runCommandClient(str(line)) answer = runCommandClient(str(line))
rospy.logdebug(answer) rospy.logdebug(answer)
print answer print(answer)
rospy.loginfo("...done with " + title) rospy.loginfo("...done with " + title)
...@@ -53,5 +54,5 @@ try: ...@@ -53,5 +54,5 @@ try:
input("Wait before starting the seqplay") input("Wait before starting the seqplay")
runCommandClient("aSimpleSeqPlay.start()") runCommandClient("aSimpleSeqPlay.start()")
except rospy.ServiceException, e: except rospy.ServiceException as e:
rospy.logerr("Service call failed: %s" % e) rospy.logerr("Service call failed: %s" % e)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment