diff options
Diffstat (limited to 'slixmpp/xmlstream/handler')
-rw-r--r-- | slixmpp/xmlstream/handler/collector.py | 4 | ||||
-rw-r--r-- | slixmpp/xmlstream/handler/waiter.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/slixmpp/xmlstream/handler/collector.py b/slixmpp/xmlstream/handler/collector.py index 03868187..d9e20279 100644 --- a/slixmpp/xmlstream/handler/collector.py +++ b/slixmpp/xmlstream/handler/collector.py @@ -10,8 +10,8 @@ """ import logging +from queue import Queue, Empty -from slixmpp.util import Queue, QueueEmpty from slixmpp.xmlstream.handler.base import BaseHandler @@ -59,7 +59,7 @@ class Collector(BaseHandler): try: while True: results.append(self._payload.get(False)) - except QueueEmpty: + except Empty: pass self.stream().remove_handler(self.name) diff --git a/slixmpp/xmlstream/handler/waiter.py b/slixmpp/xmlstream/handler/waiter.py index c8bc2e55..c25063db 100644 --- a/slixmpp/xmlstream/handler/waiter.py +++ b/slixmpp/xmlstream/handler/waiter.py @@ -10,8 +10,8 @@ """ import logging +from queue import Queue, Empty -from slixmpp.util import Queue, QueueEmpty from slixmpp.xmlstream.handler.base import BaseHandler @@ -71,7 +71,7 @@ class Waiter(BaseHandler): try: stanza = self._payload.get(True, 1) break - except QueueEmpty: + except Empty: elapsed_time += 1 if elapsed_time >= timeout: log.warning("Timed out waiting for %s", self.name) |