]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 8 Mar 2022 21:32:46 +0000 (13:32 -0800)
committerGitHub <noreply@github.com>
Tue, 8 Mar 2022 21:32:46 +0000 (13:32 -0800)
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@gmail.com>
(cherry picked from commit da80d6b2f3beff519cb1457d5e055168c89f7224)

Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de>
Lib/asyncio/base_events.py
Misc/NEWS.d/next/Library/2022-03-08-22-41-59.bpo-46955.IOoonN.rst [new file with mode: 0644]

index 8a380bb80ea0609e35ebc42c3e612ad25ee2587d..7a14e5e139f029c33f3abd55fbf35e6d2985a534 100644 (file)
@@ -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 (file)
index 0000000..75fee12
--- /dev/null
@@ -0,0 +1,2 @@
+Expose :class:`asyncio.base_events.Server` as :class:`asyncio.Server`. Patch
+by Stefan Zabka.