From 325cc917d5ad14b130b156d23b7adca46499dc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= <6774676+eumiro@users.noreply.github.com> Date: Fri, 2 Dec 2022 22:04:23 +0100 Subject: refactor: use f-strings --- mastodon/conversations.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mastodon/conversations.py') diff --git a/mastodon/conversations.py b/mastodon/conversations.py index ba3ee61..5482fb7 100644 --- a/mastodon/conversations.py +++ b/mastodon/conversations.py @@ -39,5 +39,4 @@ class Mastodon(Internals): Returns the updated :ref:`conversation dict `. """ id = self.__unpack_id(id) - url = '/api/v1/conversations/{0}/read'.format(str(id)) - return self.__api_request('POST', url) + return self.__api_request('POST', f'/api/v1/conversations/{id}/read') -- cgit v1.2.3