Reformatted code base using black.
This commit is contained in:
parent
56319cbad3
commit
53fdaa9d09
1 changed files with 12604 additions and 8966 deletions
|
|
@ -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)")
|
||||
|
|
|
|||
Loading…
Reference in a new issue