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/util | |
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/util')
-rw-r--r-- | sleekxmpp/util/__init__.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sleekxmpp/util/__init__.py b/sleekxmpp/util/__init__.py index e69de29b..86a87222 100644 --- a/sleekxmpp/util/__init__.py +++ b/sleekxmpp/util/__init__.py @@ -0,0 +1,23 @@ +# -*- 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 |