Skip to content

Commit

Permalink
Update jupyter_server/services/contents/fileio.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsailer committed Dec 10, 2020
1 parent bd057ef commit 7d863f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions jupyter_server/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from jupyter_server.extension import serverextension
from jupyter_server.serverapp import ServerApp
from jupyter_server.utils import url_path_join
<<<<<<< HEAD
from jupyter_server.services.contents.filemanager import FileContentsManager
from jupyter_server.services.contents.largefilemanager import LargeFileManager

Expand All @@ -45,8 +44,6 @@ def mkdir(tmp_path, *parts):
def jp_home_dir(tmp_path):
"""Provides a temporary HOME directory value."""
return mkdir(tmp_path, "home")
=======
>>>>>>> Use jp prefix for fixtures


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion jupyter_server/services/contents/fileio.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class FileManagerMixin(Configurable):

@contextmanager
def open(self, os_path, *args, **kwargs):
"""wrapper around open that turns permission errors into 403"""
"""wrapper around io.open that turns permission errors into 403"""
with self.perm_to_403(os_path):
with io.open(os_path, *args, **kwargs) as f:
yield f
Expand Down

0 comments on commit 7d863f3

Please sign in to comment.