Skip to content

Commit

Permalink
Queue module was renamed in Python 3 (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurieCheers-unity authored and sdiao committed May 27, 2021
1 parent 79910ae commit 39713e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ros_tcp_endpoint/tcp_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@
from .client import ClientThread
from ros_tcp_endpoint.msg import RosUnityError
from ros_tcp_endpoint.srv import UnityHandshake, UnityHandshakeResponse
from queue import Queue

# queue module was renamed between python 2 and 3
try:
from queue import Queue
except:
from Queue import Queue

class UnityTcpSender:
"""
Expand Down

0 comments on commit 39713e4

Please sign in to comment.