]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760)
authorStefan Zabka <zabkaste@informatik.hu-berlin.de>
Tue, 8 Mar 2022 21:07:33 +0000 (22:07 +0100)
committerGitHub <noreply@github.com>
Tue, 8 Mar 2022 21:07:33 +0000 (23:07 +0200)
This change aligns the documentation at https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.Server
with the actual implementation

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
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 f9215c5e0182a89dafc5784a5101c9a46a4eb5f7..51c4e664d74e9da0bbbca0550333a5e0b17ac598 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.