import SelectorEventLoop from asyncio.unix_events when not on windows (#3753)

Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
This commit is contained in:
Oleg Höfling
2020-02-22 05:49:31 +01:00
committed by GitHub
parent 7b38214280
commit 6600dabd5c

View File

@@ -110,12 +110,11 @@ if sys.version_info >= (3, 7):
)
if sys.platform != 'win32':
# This is already imported above on Windows.
SelectorEventLoop: Type[AbstractEventLoop]
from .unix_events import (
AbstractChildWatcher as AbstractChildWatcher,
BaseChildWatcher as BaseChildWatcher,
SafeChildWatcher as SafeChildWatcher,
SelectorEventLoop as SelectorEventLoop,
)
if sys.version_info >= (3, 8):
from .unix_events import MultiLoopChildWatcher as MultiLoopChildWatcher, ThreadedChildWatcher as ThreadedChildWatcher