X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=python-eventlet%2Feventlet%2Fqueue.py;h=31248db70552b03c8454c809bcdae3f8ac86429d;hb=refs%2Fheads%2Fmaster;hp=5a82238193670c5f9b2384b7a9075cdaf72c0ef9;hpb=358bd9258c2b6d2ee74de4dfd07a5123107abad4;p=packages%2Ftrusty%2Fpython-eventlet.git diff --git a/python-eventlet/eventlet/queue.py b/python-eventlet/eventlet/queue.py index 5a82238..31248db 100644 --- a/python-eventlet/eventlet/queue.py +++ b/python-eventlet/eventlet/queue.py @@ -50,6 +50,7 @@ from eventlet.event import Event from eventlet.greenthread import getcurrent from eventlet.hubs import get_hub from eventlet.support import six +from eventlet.support.six.moves import queue as Stdlib_Queue from eventlet.timeout import Timeout @@ -145,9 +146,10 @@ class Waiter(object): class LightQueue(object): """ This is a variant of Queue that behaves mostly like the standard - :class:`Queue`. It differs by not supporting the - :meth:`task_done ` or :meth:`join ` methods, - and is a little faster for not having that overhead. + :class:`Stdlib_Queue`. It differs by not supporting the + :meth:`task_done ` or + :meth:`join ` methods, and is a little faster for + not having that overhead. """ def __init__(self, maxsize=None): @@ -381,11 +383,11 @@ class Queue(LightQueue): If *maxsize* is less than zero or ``None``, the queue size is infinite. ``Queue(0)`` is a channel, that is, its :meth:`put` method always blocks - until the item is delivered. (This is unlike the standard :class:`Queue`, - where 0 means infinite size). + until the item is delivered. (This is unlike the standard + :class:`Stdlib_Queue`, where 0 means infinite size). - In all other respects, this Queue class resembled the standard library, - :class:`Queue`. + In all other respects, this Queue class resembles the standard library, + :class:`Stdlib_Queue`. ''' def __init__(self, maxsize=None):