Skip to content

Commit 59384bc

Browse files
committed
i18n format fix
1 parent 5ef77a3 commit 59384bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jupyter_server/auth/identity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def process_login_form(self, handler: web.RequestHandler) -> User | None:
651651
config_dir = handler.settings.get("config_dir", "")
652652
config_file = os.path.join(config_dir, "jupyter_server_config.json")
653653
self.hashed_password = set_password(new_password, config_file=config_file)
654-
self.log.info(_i18n(f"Wrote hashed password to {config_file}"))
654+
self.log.info(_i18n("Wrote hashed password to {file}").format(file=config_file))
655655

656656
return user
657657

jupyter_server/serverapp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2857,7 +2857,7 @@ def running_server_info(self, kernel_count: bool = True) -> str:
28572857
info += kernel_msg % n_kernels
28582858
info += "\n"
28592859
# Format the info so that the URL fits on a single line in 80 char display
2860-
info += _i18n(f"Jupyter Server {ServerApp.version} is running at:\n{self.display_url}")
2860+
info += _i18n("Jupyter Server {version} is running at:\n{url}").format(version=ServerApp.version, url=self.display_url)
28612861
if self.gateway_config.gateway_enabled:
28622862
info += (
28632863
_i18n("\nKernels will be managed by the Gateway server running at:\n%s")

0 commit comments

Comments
 (0)