Skip to content

Commit b2a23d8

Browse files
author
Steven Silvester
authored
Merge pull request #686 from minrk/no-import-time-eventloop-policy
Don't set event loop policy on Windows at import time
2 parents 3acf114 + 2f88d60 commit b2a23d8

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)