code style reformatting using black
This commit is contained in:
parent
4127bcffd0
commit
744cb0c503
1 changed files with 21394 additions and 10488 deletions
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
from sat.core.i18n import _
|
||||
from sat.core.log import getLogger
|
||||
|
||||
log = getLogger(__name__)
|
||||
from sat.core.constants import Const as C
|
||||
import json
|
||||
|
|
@ -31,17 +32,21 @@ PLUGIN_INFO = {
|
|||
C.PI_DEPENDENCIES: [],
|
||||
C.PI_MAIN: "Debug",
|
||||
C.PI_HANDLER: "no",
|
||||
C.PI_DESCRIPTION: _("""Set of method to make development and debugging easier""")
|
||||
C.PI_DESCRIPTION: _("""Set of method to make development and debugging easier"""),
|
||||
}
|
||||
|
||||
|
||||
class Debug(object):
|
||||
|
||||
def __init__(self, host):
|
||||
log.info(_("Plugin Debug initialization"))
|
||||
self.host = host
|
||||
host.bridge.addMethod("debugFakeSignal", ".plugin", in_sign='sss', out_sign='', method=self._fakeSignal)
|
||||
|
||||
host.bridge.addMethod(
|
||||
"debugFakeSignal",
|
||||
".plugin",
|
||||
in_sign="sss",
|
||||
out_sign="",
|
||||
method=self._fakeSignal,
|
||||
)
|
||||
|
||||
def _fakeSignal(self, signal, arguments, profile_key):
|
||||
"""send a signal from backend
|
||||
|
|
@ -56,6 +61,3 @@ class Debug(object):
|
|||
profile = self.host.memory.getProfileName(profile_key)
|
||||
args.append(profile)
|
||||
method(*args)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue