Skip to content

Commit

Permalink
fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Mar 12, 2022
1 parent 8e176a7 commit 5ecc1e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jupyter_server/auth/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def persist_config(config_file=None, mode=0o600):

yield config

with io.open(config_file, "wb", encoding="utf8") as f:
f.write(json.dumps(config, indent=2).encode("utf8"))
with io.open(config_file, "w", encoding="utf8") as f:
f.write(json.dumps(config, indent=2))

try:
os.chmod(config_file, mode)
Expand Down
2 changes: 1 addition & 1 deletion jupyter_server/base/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
from traitlets.config import Application

import jupyter_server
from jupyter_server import filefind
from jupyter_server._sysinfo import get_sys_info
from jupyter_server._tz import utcnow
from jupyter_server.i18n import combine_translations
from jupyter_server.services.security import csp_report_uri
from jupyter_server.utils import ensure_async
from jupyter_server.utils import filefind
from jupyter_server.utils import url_escape
from jupyter_server.utils import url_is_absolute
from jupyter_server.utils import url_path_join
Expand Down

0 comments on commit 5ecc1e6

Please sign in to comment.