mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user