Fix linting
This commit is contained in:
parent
1a034fc9c4
commit
6f776c1a2e
@ -14,7 +14,9 @@ def use_uvloop():
|
|||||||
try:
|
try:
|
||||||
import uvloop # type: ignore
|
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())
|
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user