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 14
14
)
15
15
from .fileio import AsyncFileManagerMixin , FileManagerMixin
16
16
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
23
18
from jupyter_core .utils import ensure_dir_exists
24
19
from traitlets import Unicode
25
20
Original file line number Diff line number Diff line change 12
12
import os
13
13
import shutil
14
14
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
21
16
from tornado .web import HTTPError
22
17
23
18
from jupyter_server .utils import (
Original file line number Diff line number Diff line change 12
12
import mimetypes
13
13
import nbformat
14
14
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
21
16
from send2trash import send2trash
22
17
from tornado import web
23
18
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
7
2
from tornado import web
8
3
import base64
9
4
import os , io
Original file line number Diff line number Diff line change 1
1
import json
2
2
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
9
4
from tornado import web
10
5
11
6
from ...base .handlers import APIHandler
Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ install_requires =
40
40
Send2Trash
41
41
terminado>=0.8.3
42
42
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
45
44
websocket-client
46
45
47
46
[options.extras_require]
You can’t perform that action at this time.
0 commit comments