Fix linting... *sigh*
This commit is contained in:
parent
2ff45ccfb1
commit
1908eb5a02
@ -12,6 +12,7 @@ UVLOOP_INSTALLED = False
|
||||
|
||||
try:
|
||||
import uvloop # type: ignore # noqa
|
||||
|
||||
UVLOOP_INSTALLED = True
|
||||
except ImportError:
|
||||
pass
|
||||
|
@ -12,9 +12,7 @@ def use_uvloop() -> None:
|
||||
"""
|
||||
import uvloop # type: ignore
|
||||
|
||||
if not isinstance(
|
||||
asyncio.get_event_loop_policy(), uvloop.EventLoopPolicy
|
||||
):
|
||||
if not isinstance(asyncio.get_event_loop_policy(), uvloop.EventLoopPolicy):
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user