Use literal string interpolation in integrations B-D (f-strings) (#26378)

This commit is contained in:
Franck Nijhof 2019-09-03 17:09:59 +02:00 committed by Pascal Vizeli
parent 105461edb5
commit 6a24d893c8
52 changed files with 116 additions and 126 deletions

View file

@ -73,7 +73,7 @@ class ClicksendNotificationService(BaseNotificationService):
}
)
api_url = "{}/sms/send".format(BASE_API_URL)
api_url = f"{BASE_API_URL}/sms/send"
resp = requests.post(
api_url,
data=json.dumps(data),
@ -94,7 +94,7 @@ class ClicksendNotificationService(BaseNotificationService):
def _authenticate(config):
"""Authenticate with ClickSend."""
api_url = "{}/account".format(BASE_API_URL)
api_url = f"{BASE_API_URL}/account"
resp = requests.get(
api_url,
headers=HEADERS,