Ran black on branc
This commit is contained in:
parent
6effb6f456
commit
4ea6209123
230 changed files with 7108 additions and 2395 deletions
|
|
@ -18,7 +18,9 @@ MSSP_VAR = b"\x01"
|
|||
MSSP_VAL = b"\x02"
|
||||
|
||||
# try to get the customized mssp info, if it exists.
|
||||
MSSPTable_CUSTOM = utils.variable_from_module(settings.MSSP_META_MODULE, "MSSPTable", default={})
|
||||
MSSPTable_CUSTOM = utils.variable_from_module(
|
||||
settings.MSSP_META_MODULE, "MSSPTable", default={}
|
||||
)
|
||||
|
||||
|
||||
class Mssp(object):
|
||||
|
|
@ -119,10 +121,18 @@ class Mssp(object):
|
|||
if utils.is_iter(value):
|
||||
for partval in value:
|
||||
varlist += (
|
||||
MSSP_VAR + bytes(variable, "utf-8") + MSSP_VAL + bytes(partval, "utf-8")
|
||||
MSSP_VAR
|
||||
+ bytes(variable, "utf-8")
|
||||
+ MSSP_VAL
|
||||
+ bytes(partval, "utf-8")
|
||||
)
|
||||
else:
|
||||
varlist += MSSP_VAR + bytes(variable, "utf-8") + MSSP_VAL + bytes(value, "utf-8")
|
||||
varlist += (
|
||||
MSSP_VAR
|
||||
+ bytes(variable, "utf-8")
|
||||
+ MSSP_VAL
|
||||
+ bytes(value, "utf-8")
|
||||
)
|
||||
|
||||
# send to crawler by subnegotiation
|
||||
self.protocol.requestNegotiation(MSSP, varlist)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue