Reformatted code base using black.

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

View file

@ -61,7 +61,9 @@ class XEP_0100(object):
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 @@ class XEP_0100(object):
)
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 @@ class XEP_0100(object):
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 @@ class XEP_0100(object):
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)")