From 20e88f78a39ff56235c1d42ba4b947f5fa8e67b7 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Tue, 8 Mar 2022 13:32:46 -0800 Subject: [PATCH] bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760) This change aligns the documentation at https://docs.python.org/3/library/asyncio-eventloop.htmlGH-asyncio.Server with the actual implementation Co-authored-by: Andrew Svetlov (cherry picked from commit da80d6b2f3beff519cb1457d5e055168c89f7224) Co-authored-by: Stefan Zabka --- Lib/asyncio/base_events.py | 2 +- .../next/Library/2022-03-08-22-41-59.bpo-46955.IOoonN.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Library/2022-03-08-22-41-59.bpo-46955.IOoonN.rst diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 8a380bb80ea..7a14e5e139f 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -49,7 +49,7 @@ from . import trsock from .log import logger -__all__ = 'BaseEventLoop', +__all__ = 'BaseEventLoop','Server', # Minimum number of _scheduled timer handles before cleanup of 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 00000000000..75fee1240d3 --- /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.