Skip to content

Commit 2f88d60

Browse files
committed
Don't set event loop policy on Windows at import
Imports shouldn't have side effects like this. Plus, with tornado 6.1 and pyzmq 22, proactor generally works anyway
1 parent 3acf114 commit 2f88d60

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

jupyter_client/utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
"""
22
utils:
3-
- provides utility wrapeprs to run asynchronous functions in a blocking environment.
3+
- provides utility wrappers to run asynchronous functions in a blocking environment.
44
- vendor functions from ipython_genutils that should be retired at some point.
55
"""
66
import asyncio
77
import inspect
88
import os
9-
import sys
10-
11-
if os.name == "nt" and sys.version_info >= (3, 7):
12-
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) # type: ignore
139

1410

1511
def run_sync(coro):

0 commit comments

Comments
 (0)