[Python-checkins] bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760)

miss-islington webhook-mailer at python.org
Tue Mar 8 16:36:54 EST 2022


https://github.com/python/cpython/commit/8de434b332ed92ba2db90de6ed0969aee23735c2
commit: 8de434b332ed92ba2db90de6ed0969aee23735c2
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-03-08T13:36:35-08:00
summary:

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 <andrew.svetlov at gmail.com>
(cherry picked from commit da80d6b2f3beff519cb1457d5e055168c89f7224)

Co-authored-by: Stefan Zabka <zabkaste at informatik.hu-berlin.de>

files:
A Misc/NEWS.d/next/Library/2022-03-08-22-41-59.bpo-46955.IOoonN.rst
M Lib/asyncio/base_events.py

diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index f51613d3b7dfa..952da11064fef 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
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 0000000000000..75fee1240d3cd
--- /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.



More information about the Python-checkins mailing list