3e43b36a9d
This will make it easier to enable gevent support.
23 lines
455 B
Python
23 lines
455 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
sleekxmpp.util
|
|
~~~~~~~~~~~~~~
|
|
|
|
Part of SleekXMPP: The Sleek XMPP Library
|
|
|
|
:copyright: (c) 2012 Nathanael C. Fritz, Lance J.T. Stout
|
|
:license: MIT, see LICENSE for more details
|
|
"""
|
|
|
|
|
|
# =====================================================================
|
|
# Standardize import of Queue class:
|
|
|
|
try:
|
|
import queue
|
|
except ImportError:
|
|
import Queue as queue
|
|
|
|
|
|
Queue = queue.Queue
|
|
QueueEmpty = queue.Empty
|