Fix the sys.platform string.

This commit is contained in:
Yuxin Wang 2019-10-21 23:16:33 -04:00 committed by GitHub
parent b5ffe1b84f
commit afcb89cdf2

View file

@ -10,7 +10,7 @@ from p2pfs.ui.terminal import TrackerTerminal, PeerTerminal
coloredlogs.install(level='ERROR', fmt='%(levelname)s:%(module)s: %(message)s')
# uvloop does not work on windows, so we will use default loop
if sys.platform != 'windows':
if sys.platform != 'win32':
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())