gh-127949: deprecate asyncio policy classes (#128216)

This commit is contained in:
Kumar Aditya 2024-12-24 17:30:26 +05:30 committed by GitHub
parent 3f6a618e49
commit a391d80f4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 82 additions and 34 deletions

View file

@ -28,7 +28,7 @@ from .log import logger
__all__ = (
'SelectorEventLoop',
'DefaultEventLoopPolicy',
'_DefaultEventLoopPolicy',
'EventLoop',
)
@ -963,11 +963,11 @@ def can_use_pidfd():
return True
class _UnixDefaultEventLoopPolicy(events.BaseDefaultEventLoopPolicy):
class _UnixDefaultEventLoopPolicy(events._BaseDefaultEventLoopPolicy):
"""UNIX event loop policy"""
_loop_factory = _UnixSelectorEventLoop
SelectorEventLoop = _UnixSelectorEventLoop
DefaultEventLoopPolicy = _UnixDefaultEventLoopPolicy
_DefaultEventLoopPolicy = _UnixDefaultEventLoopPolicy
EventLoop = SelectorEventLoop