diff options
author | Lance Stout <lancestout@gmail.com> | 2012-07-24 02:39:54 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-07-24 02:39:54 -0700 |
commit | 3e43b36a9d70801d90a6b09046f93879f2e29b89 (patch) | |
tree | 758b0f60cb569605a91900fcbfd10d7bc364a243 /sleekxmpp/test/livesocket.py | |
parent | 352ee2f2fd6458a46e046ecaedb78addd5d6ac20 (diff) | |
download | slixmpp-3e43b36a9d70801d90a6b09046f93879f2e29b89.tar.gz slixmpp-3e43b36a9d70801d90a6b09046f93879f2e29b89.tar.bz2 slixmpp-3e43b36a9d70801d90a6b09046f93879f2e29b89.tar.xz slixmpp-3e43b36a9d70801d90a6b09046f93879f2e29b89.zip |
Standardize importing of queue class.
This will make it easier to enable gevent support.
Diffstat (limited to 'sleekxmpp/test/livesocket.py')
-rw-r--r-- | sleekxmpp/test/livesocket.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sleekxmpp/test/livesocket.py b/sleekxmpp/test/livesocket.py index 80d63307..d70ee4eb 100644 --- a/sleekxmpp/test/livesocket.py +++ b/sleekxmpp/test/livesocket.py @@ -8,10 +8,8 @@ import socket import threading -try: - import queue -except ImportError: - import Queue as queue + +from sleekxmpp.util import Queue class TestLiveSocket(object): @@ -39,8 +37,8 @@ class TestLiveSocket(object): """ self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.recv_buffer = [] - self.recv_queue = queue.Queue() - self.send_queue = queue.Queue() + self.recv_queue = Queue() + self.send_queue = Queue() self.send_queue_lock = threading.Lock() self.recv_queue_lock = threading.Lock() self.is_live = True |