mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
parent
a1b95e5072
commit
d6d14617d2
@ -181,9 +181,7 @@ class VersionInfo:
|
|||||||
|
|
||||||
|
|
||||||
def _update_event_loop_policy():
|
def _update_event_loop_policy():
|
||||||
if _sys.platform == "win32":
|
if _sys.implementation.name == "cpython":
|
||||||
_asyncio.set_event_loop_policy(_asyncio.WindowsProactorEventLoopPolicy())
|
|
||||||
elif _sys.implementation.name == "cpython":
|
|
||||||
# Let's not force this dependency, uvloop is much faster on cpython
|
# Let's not force this dependency, uvloop is much faster on cpython
|
||||||
try:
|
try:
|
||||||
import uvloop as _uvloop
|
import uvloop as _uvloop
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user