File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def event_loop_policy():
17
17
# has issues with sharing sockets across loops (https://github.com/python/cpython/issues/122240)
18
18
# We explicitly use a different loop implementation here to prevent that issue
19
19
if sys .platform == "win32" :
20
- # asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
20
+ asyncio .set_event_loop_policy (asyncio .WindowsSelectorEventLoopPolicy ())
21
21
return asyncio .WindowsSelectorEventLoopPolicy () # type: ignore[attr-defined]
22
22
23
23
return asyncio .get_event_loop_policy ()
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def event_loop_policy():
15
15
# has issues with sharing sockets across loops (https://github.com/python/cpython/issues/122240)
16
16
# We explicitly use a different loop implementation here to prevent that issue
17
17
if sys .platform == "win32" :
18
- # asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
18
+ asyncio .set_event_loop_policy (asyncio .WindowsSelectorEventLoopPolicy ())
19
19
return asyncio .WindowsSelectorEventLoopPolicy () # type: ignore[attr-defined]
20
20
21
21
return asyncio .get_event_loop_policy ()
You can’t perform that action at this time.
0 commit comments