diff libervia/backend/plugins/plugin_xep_0100.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 7ded09452875
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0100.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/backend/plugins/plugin_xep_0100.py	Wed Jun 19 18:44:57 2024 +0200
@@ -61,7 +61,9 @@
     def __init__(self, host):
         log.info(_("Gateways plugin initialization"))
         self.host = host
-        self.__gateways = {}  # dict used to construct the answer to gateways_find. Key = target jid
+        self.__gateways = (
+            {}
+        )  # dict used to construct the answer to gateways_find. Key = target jid
         host.bridge.add_method(
             "gateways_find",
             ".plugin",
@@ -88,7 +90,7 @@
         )
 
     def _gateways_menu(self, data, profile):
-        """ XMLUI activated by menu: return Gateways UI
+        """XMLUI activated by menu: return Gateways UI
 
         @param profile: %(doc_profile)s
         """
@@ -148,7 +150,7 @@
         return d
 
     def _get_identity_desc(self, identity):
-        """ Return a human readable description of identity
+        """Return a human readable description of identity
         @param identity: tuple as returned by Disco identities (category, type)
 
         """
@@ -253,8 +255,7 @@
         return d
 
     def gateways_find(self, target, profile):
-        """Find gateways in the target JID, using discovery protocol
-        """
+        """Find gateways in the target JID, using discovery protocol"""
         client = self.host.get_client(profile)
         log.debug(
             _("find gateways (target = %(target)s, profile = %(profile)s)")