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/relationships.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mastodon/relationships.py') diff --git a/mastodon/relationships.py b/mastodon/relationships.py index 9cf15db..043174c 100644 --- a/mastodon/relationships.py +++ b/mastodon/relationships.py @@ -102,8 +102,7 @@ class Mastodon(Internals): Returns the updated :ref:`relationship dict ` for the requesting account. """ id = self.__unpack_id(id) - url = '/api/v1/follow_requests/{0}/authorize'.format(str(id)) - return self.__api_request('POST', url) + return self.__api_request('POST', f'/api/v1/follow_requests/{id}/authorize') @api_version("1.0.0", "3.0.0", _DICT_VERSION_RELATIONSHIP) def follow_request_reject(self, id): @@ -113,8 +112,7 @@ class Mastodon(Internals): Returns the updated :ref:`relationship dict ` for the requesting account. """ id = self.__unpack_id(id) - url = '/api/v1/follow_requests/{0}/reject'.format(str(id)) - return self.__api_request('POST', url) + return self.__api_request('POST', f'/api/v1/follow_requests/{id}/reject') ### # Writing data: Domain blocks -- cgit v1.2.3