File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -272,11 +272,12 @@ def init_qt5_reactor():
272
272
273
273
274
274
def init_asyncio_reactor ():
275
- if sys .version_info >= (3 , 8 ):
276
- # If twisted releases a fix/workaround we can check that version too
277
- # https://twistedmatrix.com/trac/ticket/9766
278
- selector_policy = asyncio .WindowsSelectorEventLoopPolicy ()
279
- asyncio .set_event_loop_policy (selector_policy )
275
+ if sys .platform == 'win32' :
276
+ if sys .version_info >= (3 , 8 ):
277
+ # If twisted releases a fix/workaround we can check that version too
278
+ # https://twistedmatrix.com/trac/ticket/9766
279
+ selector_policy = asyncio .WindowsSelectorEventLoopPolicy ()
280
+ asyncio .set_event_loop_policy (selector_policy )
280
281
281
282
from twisted .internet import asyncioreactor
282
283
You can’t perform that action at this time.
0 commit comments