aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/msgutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/msgutil.py')
-rw-r--r--tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/msgutil.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/msgutil.py b/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/msgutil.py
index 4c1a0114b4b..fc6c5b1dbce 100644
--- a/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/msgutil.py
+++ b/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/msgutil.py
@@ -38,7 +38,7 @@ bytes writing/reading.
"""
-import Queue
+from six.moves import queue
import threading
@@ -124,7 +124,7 @@ class MessageReceiver(threading.Thread):
threading.Thread.__init__(self)
self._request = request
- self._queue = Queue.Queue()
+ self._queue = queue.Queue()
self._onmessage = onmessage
self._stop_requested = False
self.setDaemon(True)
@@ -157,7 +157,7 @@ class MessageReceiver(threading.Thread):
"""
try:
message = self._queue.get_nowait()
- except Queue.Empty:
+ except queue.Empty:
message = None
return message
@@ -190,7 +190,7 @@ class MessageSender(threading.Thread):
"""
threading.Thread.__init__(self)
self._request = request
- self._queue = Queue.Queue()
+ self._queue = queue.Queue()
self.setDaemon(True)
self.start()