From c8b65fcc6dbd60cc715e6423c7cba90702ffad73 Mon Sep 17 00:00:00 2001 From: Emmanuel Arias Date: Fri, 22 Feb 2019 09:56:50 -0300 Subject: [PATCH 1/2] bpo-36074: Result of after is not clear It becomes clear on that the None is still return for server closed. --- Doc/library/asyncio-eventloop.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index acf9477f723d442..5d1e865ed95c096 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -1400,7 +1400,8 @@ Do not instantiate the class directly. .. versionchanged:: 3.7 Prior to Python 3.7 ``Server.sockets`` used to return an internal list of server sockets directly. In 3.7 a copy - of that list is returned. + of that list is returned. `None` is still returned when + the server is closed. .. _asyncio-event-loops: From bb2b45fc3eae547267d0b9745b930fdcd3c6667b Mon Sep 17 00:00:00 2001 From: Emmanuel Arias Date: Fri, 22 Feb 2019 10:31:59 -0300 Subject: [PATCH 2/2] Fix doc. sockets is [] when server is closed not None --- Doc/library/asyncio-eventloop.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index 5d1e865ed95c096..8d157fd5f599ae9 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -1394,14 +1394,12 @@ Do not instantiate the class directly. .. attribute:: sockets - List of :class:`socket.socket` objects the server is listening on, - or ``None`` if the server is closed. + List of :class:`socket.socket` objects the server is listening on. .. versionchanged:: 3.7 Prior to Python 3.7 ``Server.sockets`` used to return an internal list of server sockets directly. In 3.7 a copy - of that list is returned. `None` is still returned when - the server is closed. + of that list is returned. .. _asyncio-event-loops: