Reformatted code base using black.

This commit is contained in:
Goffi 2024-06-19 18:44:57 +02:00
commit 53fdaa9d09

View file

@ -58,9 +58,7 @@ PLUGIN_INFO = {
}
# TODO: GET_IP_PAGE should be configurable in sat.conf
GET_IP_PAGE = (
"http://salut-a-toi.org/whereami/"
) # This page must only return external IP of the requester
GET_IP_PAGE = "http://salut-a-toi.org/whereami/" # This page must only return external IP of the requester
GET_IP_LABEL = D_("Allow external get IP")
GET_IP_CATEGORY = "General"
GET_IP_NAME = "allow_get_ip"
@ -75,7 +73,9 @@ IP address is an identifier to locate you on Internet (similar to a phone number
Do you agree to do this request ?
"""
).format(
page=GET_IP_PAGE, domain=urllib.parse.urlparse(GET_IP_PAGE).netloc, app_name=C.APP_NAME
page=GET_IP_PAGE,
domain=urllib.parse.urlparse(GET_IP_PAGE).netloc,
app_name=C.APP_NAME,
)
NS_IP_CHECK = "urn:xmpp:sic:1"