From a997ffca9ae16c684421a86ffee0c197b6d889b9 Mon Sep 17 00:00:00 2001 From: anonymousdouble <112695649+anonymousdouble@users.noreply.github.com> Date: Tue, 19 Dec 2023 15:30:57 +1100 Subject: [PATCH] Update firebase.py refactor with fstring to format string to make code more Pythonic. --- firebase/firebase.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/firebase/firebase.py b/firebase/firebase.py index e62576d..aac5980 100644 --- a/firebase/firebase.py +++ b/firebase/firebase.py @@ -243,8 +243,7 @@ def _build_endpoint_url(self, url, name=None): url = url + self.URL_SEPERATOR if name is None: name = '' - return '%s%s%s' % (urlparse.urljoin(self.dsn, url), name, - self.NAME_EXTENSION) + return f'{urlparse.urljoin(self.dsn, url)}{name}{self.NAME_EXTENSION}' def _authenticate(self, params, headers): """