Standardize importing of queue class.

This will make it easier to enable gevent support.
This commit is contained in:
Lance Stout
2012-07-24 02:39:54 -07:00
parent 352ee2f2fd
commit 3e43b36a9d
8 changed files with 47 additions and 42 deletions

View File

@@ -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())