mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
asyncio: Don't export BaseEventLoop, BaseSelectorEventLoop nor
BaseProactorEventLoop Import them from submodules if you really need them.
This commit is contained in:
parent
ce8d153b02
commit
128ee220e2
5 changed files with 13 additions and 15 deletions
|
@ -16,13 +16,14 @@ except ImportError:
|
|||
import asyncio
|
||||
from asyncio import selectors
|
||||
from asyncio import test_utils
|
||||
from asyncio.selector_events import BaseSelectorEventLoop
|
||||
from asyncio.selector_events import _SelectorTransport
|
||||
from asyncio.selector_events import _SelectorSslTransport
|
||||
from asyncio.selector_events import _SelectorSocketTransport
|
||||
from asyncio.selector_events import _SelectorDatagramTransport
|
||||
|
||||
|
||||
class TestBaseSelectorEventLoop(asyncio.BaseSelectorEventLoop):
|
||||
class TestBaseSelectorEventLoop(BaseSelectorEventLoop):
|
||||
|
||||
def _make_self_pipe(self):
|
||||
self._ssock = unittest.mock.Mock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue