mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Merge pull request #5907 from bollwyvl/fix-asyncio-win-patch-version
do not apply asyncio patch for tornado >=6.1
This commit is contained in:
commit
3b974015c9
@ -2041,7 +2041,7 @@ class NotebookApp(JupyterApp):
|
||||
def _init_asyncio_patch(self):
|
||||
"""set default asyncio policy to be compatible with tornado
|
||||
|
||||
Tornado 6 (at least) is not compatible with the default
|
||||
Tornado <6.1 is not compatible with the default
|
||||
asyncio implementation on Windows
|
||||
|
||||
Pick the older SelectorEventLoopPolicy on Windows
|
||||
@ -2054,7 +2054,7 @@ class NotebookApp(JupyterApp):
|
||||
FIXME: if/when tornado supports the defaults in asyncio,
|
||||
remove and bump tornado requirement for py38
|
||||
"""
|
||||
if sys.platform.startswith("win") and sys.version_info >= (3, 8):
|
||||
if sys.platform.startswith("win") and sys.version_info >= (3, 8) and tornado.version_info < (6, 1):
|
||||
import asyncio
|
||||
try:
|
||||
from asyncio import (
|
||||
|
Loading…
Reference in New Issue
Block a user