Skip to content

Commit 0afe5b1

Browse files
Mariko WakabayashiZsailer
authored andcommitted
Fix lint errors
1 parent 5a521e3 commit 0afe5b1

File tree

7 files changed

+2
-9
lines changed

7 files changed

+2
-9
lines changed

jupyter_server/services/contents/filecheckpoints.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
from anyio import run_sync_in_worker_thread
1717
from jupyter_core.utils import ensure_dir_exists
18-
from jupyter_server.utils import ensure_async
1918
from ipython_genutils.py3compat import getcwd
2019
from traitlets import Unicode
2120

jupyter_server/services/contents/fileio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import os
1313
import shutil
1414

15-
from anyio import open_file, run_sync_in_worker_thread
15+
from anyio import run_sync_in_worker_thread
1616
from tornado.web import HTTPError
1717

1818
from jupyter_server.utils import (

jupyter_server/services/contents/filemanager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import shutil
1111
import stat
1212
import sys
13-
import warnings
1413
import mimetypes
1514
import nbformat
1615

jupyter_server/services/contents/manager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
default,
3131
)
3232
from ipython_genutils.py3compat import string_types
33-
from jupyter_server.base.handlers import JupyterHandler
3433
from jupyter_server.transutils import _
3534
from jupyter_server.utils import ensure_async
3635

tests/services/contents/test_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
)
1313

1414
from jupyter_server.utils import url_path_join
15-
from jupyter_server.services.contents.filecheckpoints import AsyncFileCheckpoints, FileCheckpoints
1615

1716
from base64 import encodebytes, decodebytes
1817

tests/services/contents/test_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import pytest
22

3-
from traitlets.config import Config
43
from jupyter_server.services.contents.checkpoints import AsyncCheckpoints
54
from jupyter_server.services.contents.filecheckpoints import GenericFileCheckpoints
65
from jupyter_server.services.contents.manager import AsyncContentsManager

tests/services/contents/test_manager.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
from nbformat import v4 as nbformat
1212

13-
from jupyter_server.services.contents.filecheckpoints import AsyncFileCheckpoints, FileCheckpoints
1413
from jupyter_server.services.contents.filemanager import AsyncFileContentsManager, FileContentsManager
1514
from jupyter_server.utils import ensure_async
1615
from ...utils import expected_http_error
@@ -335,7 +334,7 @@ async def test_get(jp_contents_manager):
335334
# Test in sub-directory
336335
sub_dir = '/foo/'
337336
_make_dir(cm, 'foo')
338-
model = await ensure_async(cm.new_untitled(path=sub_dir, ext='.ipynb'))
337+
await ensure_async(cm.new_untitled(path=sub_dir, ext='.ipynb'))
339338
model2 = await ensure_async(cm.get(sub_dir + name))
340339
assert isinstance(model2, dict)
341340
assert 'name' in model2
@@ -461,7 +460,6 @@ async def test_save(jp_contents_manager):
461460
sub_dir = '/foo/'
462461
_make_dir(cm, 'foo')
463462
model = await ensure_async(cm.new_untitled(path=sub_dir, type='notebook'))
464-
name = model['name']
465463
path = model['path']
466464
model = await ensure_async(cm.get(path))
467465

0 commit comments

Comments
 (0)