Skip to content

Commit

Permalink
python3 compatibility via 2to3
Browse files Browse the repository at this point in the history
  • Loading branch information
fmessmer committed Jan 30, 2020
1 parent 40b99db commit f96e9a8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def setLightCyanSweep_cb(req):
light_mode.mode = 8
light_mode.frequency = 30
resp = set_light_torso(light_mode)
print resp
except rospy.ServiceException, e:
print "Service call failed: %s"%e
print(resp)
except rospy.ServiceException as e:
print("Service call failed: %s"%e)
return TriggerResponse(False, "Calling light service failed.")
return TriggerResponse(True, "")

Expand All @@ -77,9 +77,9 @@ def setLightCyanBreath_cb(req):
light_mode.mode = 3
light_mode.frequency = 0.25
resp = set_light_torso(light_mode)
print resp
except rospy.ServiceException, e:
print "Service call failed: %s"%e
print(resp)
except rospy.ServiceException as e:
print("Service call failed: %s"%e)
return TriggerResponse(False, "Calling light service failed.")
return TriggerResponse(True, "")

Expand Down

0 comments on commit f96e9a8

Please sign in to comment.