aboutsummaryrefslogtreecommitdiffstats
path: root/slack
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-02-19 21:53:53 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-20 13:21:38 +0100
commit12f4ff3f4bfd4a517808ada9a06be4fa612bfeba (patch)
tree2c2f21400297bb7fb3381563f540a9b0f1e4395d /slack
parent1b02ac44847570610a8696323adeb1c3c36ae187 (diff)
downloadwee-slack-12f4ff3f4bfd4a517808ada9a06be4fa612bfeba.tar.gz
Replace a str.format with an f-string
Diffstat (limited to 'slack')
-rw-r--r--slack/slack_buffer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/slack_buffer.py b/slack/slack_buffer.py
index 64c2b83..f5db14a 100644
--- a/slack/slack_buffer.py
+++ b/slack/slack_buffer.py
@@ -498,7 +498,7 @@ class SlackBuffer(ABC):
word = match.group(0)
nick = match.group(1)
if nick in nick_to_user_id:
- return "<@{}>".format(nick_to_user_id[nick])
+ return f"<@{nick_to_user_id[nick]}>"
return word
linkify_regex = r"(?:^|(?<=\s))@([\w\(\)\'.-]+)"