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/sleektest.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/sleektest.py')
-rw-r--r-- | sleekxmpp/test/sleektest.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sleekxmpp/test/sleektest.py b/sleekxmpp/test/sleektest.py index cac99f77..47af86cf 100644 --- a/sleekxmpp/test/sleektest.py +++ b/sleekxmpp/test/sleektest.py @@ -8,13 +8,10 @@ import unittest from xml.parsers.expat import ExpatError -try: - import Queue as queue -except: - import queue import sleekxmpp from sleekxmpp import ClientXMPP, ComponentXMPP +from sleekxmpp.util import Queue from sleekxmpp.stanza import Message, Iq, Presence from sleekxmpp.test import TestSocket, TestLiveSocket from sleekxmpp.exceptions import XMPPError, IqTimeout, IqError @@ -338,7 +335,7 @@ class SleekTest(unittest.TestCase): # We will use this to wait for the session_start event # for live connections. - skip_queue = queue.Queue() + skip_queue = Queue() if socket == 'mock': self.xmpp.set_socket(TestSocket()) |