aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/msgutil.py
diff options
context:
space:
mode:
authorWPT Sync Bot <josh+wptsync@joshmatthews.net>2018-06-22 21:05:34 -0400
committerWPT Sync Bot <josh+wptsync@joshmatthews.net>2018-06-22 22:44:39 -0400
commit8c46b67f8e9ac86d7cf71d92c3352ff6b5befa17 (patch)
tree97958b809223d28ddf76e87306f1dbb2d13092cb /tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/msgutil.py
parent728ebcc932e33b36f0fb76e6e794ef1c1dc15e32 (diff)
downloadservo-8c46b67f8e9ac86d7cf71d92c3352ff6b5befa17.tar.gz
servo-8c46b67f8e9ac86d7cf71d92c3352ff6b5befa17.zip
Update web-platform-tests to revision 4333a1d2f109795547fc5e22ebfc8481fa649de7
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()