File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +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
+ # Needed for Python 3.8.
20
21
asyncio .set_event_loop_policy (asyncio .WindowsSelectorEventLoopPolicy ())
21
22
return asyncio .WindowsSelectorEventLoopPolicy () # type: ignore[attr-defined]
22
23
Original file line number Diff line number Diff line change @@ -15,6 +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
+ # Needed for Python 3.8.
18
19
asyncio .set_event_loop_policy (asyncio .WindowsSelectorEventLoopPolicy ())
19
20
return asyncio .WindowsSelectorEventLoopPolicy () # type: ignore[attr-defined]
20
21
You can’t perform that action at this time.
0 commit comments