File tree Expand file tree Collapse file tree 6 files changed +6
-32
lines changed
Expand file tree Collapse file tree 6 files changed +6
-32
lines changed Original file line number Diff line number Diff line change 1414)
1515from .fileio import AsyncFileManagerMixin , FileManagerMixin
1616
17- try :
18- from anyio .to_thread import run_sync
19- except ImportError :
20- # fallback on anyio v2 for python version < 3.7
21- from anyio import run_sync_in_worker_thread as run_sync
22-
17+ from anyio .to_thread import run_sync
2318from jupyter_core .utils import ensure_dir_exists
2419from traitlets import Unicode
2520
Original file line number Diff line number Diff line change 1212import os
1313import shutil
1414
15- try :
16- from anyio .to_thread import run_sync
17- except ImportError :
18- # fallback on anyio v2 for python version < 3.7
19- from anyio import run_sync_in_worker_thread as run_sync
20-
15+ from anyio .to_thread import run_sync
2116from tornado .web import HTTPError
2217
2318from jupyter_server .utils import (
Original file line number Diff line number Diff line change 1212import mimetypes
1313import nbformat
1414
15- try :
16- from anyio .to_thread import run_sync
17- except ImportError :
18- # fallback on anyio v2 for python version < 3.7
19- from anyio import run_sync_in_worker_thread as run_sync
20-
15+ from anyio .to_thread import run_sync
2116from send2trash import send2trash
2217from tornado import web
2318
Original file line number Diff line number Diff line change 1- try :
2- from anyio .to_thread import run_sync
3- except ImportError :
4- # fallback on anyio v2 for python version < 3.7
5- from anyio import run_sync_in_worker_thread as run_sync
6-
1+ from anyio .to_thread import run_sync
72from tornado import web
83import base64
94import os , io
Original file line number Diff line number Diff line change 11import json
22
3- try :
4- from anyio .to_thread import run_sync
5- except ImportError :
6- # fallback on anyio v2 for python version < 3.7
7- from anyio import run_sync_in_worker_thread as run_sync
8-
3+ from anyio .to_thread import run_sync
94from tornado import web
105
116from ...base .handlers import APIHandler
Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ install_requires =
4040 Send2Trash
4141 terminado>=0.8.3
4242 prometheus_client
43- anyio>=2.0.2,<3 ; python_version < '3.7'
44- anyio>=3.0.1,<4 ; python_version >= '3.7'
43+ anyio>=3.1.0,<4
4544 websocket-client
4645
4746[options.extras_require]
You can’t perform that action at this time.
0 commit comments