From f4692b6612f967e53bb4017bd6e1c4233c3b2d9e Mon Sep 17 00:00:00 2001 From: vringar Date: Tue, 8 Mar 2022 13:02:50 +0100 Subject: [PATCH 1/2] bpo-46955: Expose asyncio.base_events.Server as asyncio.Server This change aligns the documentation at https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.Server with the actual implementation --- Lib/asyncio/base_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index f9215c5e0182a8..51c4e664d74e9d 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -49,7 +49,7 @@ from .log import logger -__all__ = 'BaseEventLoop', +__all__ = 'BaseEventLoop','Server', # Minimum number of _scheduled timer handles before cleanup of From c1aafd5dce487e74acce0052cfffcee14d8445cf Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Tue, 8 Mar 2022 22:42:07 +0200 Subject: [PATCH 2/2] Add NEWS --- .../next/Library/2022-03-08-22-41-59.bpo-46955.IOoonN.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2022-03-08-22-41-59.bpo-46955.IOoonN.rst diff --git a/Misc/NEWS.d/next/Library/2022-03-08-22-41-59.bpo-46955.IOoonN.rst b/Misc/NEWS.d/next/Library/2022-03-08-22-41-59.bpo-46955.IOoonN.rst new file mode 100644 index 00000000000000..75fee1240d3cd0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-03-08-22-41-59.bpo-46955.IOoonN.rst @@ -0,0 +1,2 @@ +Expose :class:`asyncio.base_events.Server` as :class:`asyncio.Server`. Patch +by Stefan Zabka.