mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
python: Normalize quotes with Black.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
11741543da
commit
6e4c3e41dc
@@ -41,7 +41,7 @@ def put_dict_in_redis(
|
||||
token_length: int = 64,
|
||||
token: Optional[str] = None,
|
||||
) -> str:
|
||||
key_length = len(key_format) - len('{token}') + token_length
|
||||
key_length = len(key_format) - len("{token}") + token_length
|
||||
if key_length > MAX_KEY_LENGTH:
|
||||
raise ZulipRedisKeyTooLongError(
|
||||
f"Requested key too long in put_dict_in_redis. Key format: {key_format}, token length: {token_length}",
|
||||
|
||||
Reference in New Issue
Block a user