From: Victor Stinner Date: Tue, 3 Feb 2015 14:09:24 +0000 (+0100) Subject: asyncio, Tulip issue 221: Fix doc of QueueEmpty and QueueFull X-Git-Tag: v3.4.3rc1~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17d87f8ae42122025b5ce41230df6ba9e042ec40;p=thirdparty%2FPython%2Fcpython.git asyncio, Tulip issue 221: Fix doc of QueueEmpty and QueueFull --- diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst index 4cc9a9645c49..80974d9ee182 100644 --- a/Doc/library/asyncio-sync.rst +++ b/Doc/library/asyncio-sync.rst @@ -428,13 +428,11 @@ Exceptions .. exception:: QueueEmpty - Exception raised when non-blocking :meth:`~Queue.get` (or - :meth:`~Queue.get_nowait`) is called - on a :class:`Queue` object which is empty. + Exception raised when the :meth:`~Queue.get_nowait` method is called on a + :class:`Queue` object which is empty. .. exception:: QueueFull - Exception raised when non-blocking :meth:`~Queue.put` (or - :meth:`~Queue.put_nowait`) is called - on a :class:`Queue` object which is full. + Exception raised when the :meth:`~Queue.put_nowait` method is called on a + :class:`Queue` object which is full. diff --git a/Lib/asyncio/queues.py b/Lib/asyncio/queues.py index dce0d53c7038..4aeb6c451797 100644 --- a/Lib/asyncio/queues.py +++ b/Lib/asyncio/queues.py @@ -13,12 +13,16 @@ from .tasks import coroutine class QueueEmpty(Exception): - 'Exception raised by Queue.get(block=0)/get_nowait().' + """Exception raised when Queue.get_nowait() is called on a Queue object + which is empty. + """ pass class QueueFull(Exception): - 'Exception raised by Queue.put(block=0)/put_nowait().' + """Exception raised when the Queue.put_nowait() method is called on a Queue + object which is full. + """ pass