From afcb89cdf260c1d0783ec1c7dce4b921ab64e361 Mon Sep 17 00:00:00 2001 From: Yuxin Wang Date: Mon, 21 Oct 2019 23:16:33 -0400 Subject: [PATCH] Fix the sys.platform string. --- p2pfs/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2pfs/__main__.py b/p2pfs/__main__.py index 8b6001a..ea3be70 100644 --- a/p2pfs/__main__.py +++ b/p2pfs/__main__.py @@ -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())