Skip to content

Commit 008a6c0

Browse files
authored
Revert "do not apply asyncio patch for tornado >=6.1" (#6052)
This reverts commit 73c9ac1.
1 parent 8ca2887 commit 008a6c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebook/notebookapp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,7 +2086,7 @@ def init_shutdown_no_activity(self):
20862086
def _init_asyncio_patch(self):
20872087
"""set default asyncio policy to be compatible with tornado
20882088
2089-
Tornado <6.1 is not compatible with the default
2089+
Tornado 6 (at least) is not compatible with the default
20902090
asyncio implementation on Windows
20912091
20922092
Pick the older SelectorEventLoopPolicy on Windows
@@ -2099,7 +2099,7 @@ def _init_asyncio_patch(self):
20992099
FIXME: if/when tornado supports the defaults in asyncio,
21002100
remove and bump tornado requirement for py38
21012101
"""
2102-
if sys.platform.startswith("win") and sys.version_info >= (3, 8) and tornado.version_info < (6, 1):
2102+
if sys.platform.startswith("win") and sys.version_info >= (3, 8):
21032103
import asyncio
21042104
try:
21052105
from asyncio import (

0 commit comments

Comments
 (0)