mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-127949: deprecate asyncio policy classes (#128216)
This commit is contained in:
parent
3f6a618e49
commit
a391d80f4b
8 changed files with 82 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue