Use literal string interpolation in integrations B-D (f-strings) (#26378)
This commit is contained in:
1 parent
105461edb5
commit
6a24d893c8
52 files changed
+116
-126
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user