From 59f51f8705793455d025308b6d968de4c0d180cb Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 27 Mar 2022 19:44:25 +0300 Subject: [PATCH] Fix some strings --- maubot/cli/commands/auth.py | 2 +- maubot/client.py | 4 ++-- maubot/standalone/__main__.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/maubot/cli/commands/auth.py b/maubot/cli/commands/auth.py index 59fcb20..64b1dc7 100644 --- a/maubot/cli/commands/auth.py +++ b/maubot/cli/commands/auth.py @@ -74,7 +74,7 @@ async def list_servers(server: str, sess: aiohttp.ClientSession) -> None: @click.option( "-c", "--update-client", - help="Instead of returning the access token, " "create or update a client in maubot using it", + help="Instead of returning the access token, create or update a client in maubot using it", is_flag=True, default=False, ) diff --git a/maubot/client.py b/maubot/client.py index 315f217..81d3d17 100644 --- a/maubot/client.py +++ b/maubot/client.py @@ -222,7 +222,7 @@ class Client(DBClient): crypto_device_id = await self.crypto_store.get_device_id() if crypto_device_id and crypto_device_id != self.device_id: self.log.warning( - "Mismatching device ID in crypto store and main database, " "resetting encryption" + "Mismatching device ID in crypto store and main database, resetting encryption" ) await self.crypto_store.delete() crypto_device_id = None @@ -263,7 +263,7 @@ class Client(DBClient): return elif whoami.device_id and self.device_id and whoami.device_id != self.device_id: self.log.error( - f"Device ID mismatch: expected {self.device_id}, " f"but got {whoami.device_id}" + f"Device ID mismatch: expected {self.device_id}, but got {whoami.device_id}" ) self.enabled = False await self.update() diff --git a/maubot/standalone/__main__.py b/maubot/standalone/__main__.py index 5c566b1..3e9c3aa 100644 --- a/maubot/standalone/__main__.py +++ b/maubot/standalone/__main__.py @@ -78,7 +78,7 @@ parser.add_argument( type=str, default="pkg://maubot.standalone/example-config.yaml", metavar="", - help="the path to the example config " "(for automatic config updates)", + help="the path to the example config (for automatic config updates)", ) parser.add_argument( "-m",