diff libervia/backend/plugins/plugin_xep_0070.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 4b842c1fb686
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0070.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/backend/plugins/plugin_xep_0070.py	Wed Jun 19 18:44:57 2024 +0200
@@ -96,18 +96,21 @@
         auth_url = auth_elt["url"]
         self._dictRequest[client] = (auth_id, auth_method, auth_url, stanzaType, elt)
         title = D_("Auth confirmation")
-        message = D_("{auth_url} needs to validate your identity, do you agree?\n"
-                     "Validation code : {auth_id}\n\n"
-                     "Please check that this code is the same as on {auth_url}"
-                    ).format(auth_url=auth_url, auth_id=auth_id)
-        d = xml_tools.defer_confirm(self.host, message=message, title=title,
-            profile=client.profile)
+        message = D_(
+            "{auth_url} needs to validate your identity, do you agree?\n"
+            "Validation code : {auth_id}\n\n"
+            "Please check that this code is the same as on {auth_url}"
+        ).format(auth_url=auth_url, auth_id=auth_id)
+        d = xml_tools.defer_confirm(
+            self.host, message=message, title=title, profile=client.profile
+        )
         d.addCallback(self._auth_request_callback, client)
 
     def _auth_request_callback(self, authorized, client):
         try:
             auth_id, auth_method, auth_url, stanzaType, elt = self._dictRequest.pop(
-                client)
+                client
+            )
         except KeyError:
             authorized = False