diff options
| author | Ramakrishnan G <rameshg87@gmail.com> | 2015-09-14 11:38:43 +0000 |
|---|---|---|
| committer | Sergey Shepelev <temotor@gmail.com> | 2015-10-13 13:16:54 +0300 |
| commit | 299da78a65c4c0f87070d92098675677eb113199 (patch) | |
| tree | 5b22fcddffc3e282cf5042465264b93694a030a8 | |
| parent | 27e899df9d5cf20f1a5e5e0228bf0e2f6ebef47b (diff) | |
| download | eventlet-qdoc.tar.gz | |
Fix docstring which pointed to wrong Queueqdoc
This commit fixes the docstring which pointed
to the wrong class eventlet.queue.Queue instead
of the one in standard library.
| -rw-r--r-- | eventlet/queue.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/eventlet/queue.py b/eventlet/queue.py index 5a82238..07c8d9f 100644 --- a/eventlet/queue.py +++ b/eventlet/queue.py @@ -45,6 +45,7 @@ import sys import heapq import collections import traceback +import Queue as Stdlib_Queue from eventlet.event import Event from eventlet.greenthread import getcurrent @@ -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 <Queue.task_done>` or :meth:`join <Queue.join>` methods, - and is a little faster for not having that overhead. + :class:`Stdlib_Queue`. It differs by not supporting the + :meth:`task_done <Stdlib_Queue.task_done>` or + :meth:`join <Stdlib_Queue.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): |
