mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-23 06:27:41 +01:00
Fix flake8 reported issues.
This commit is contained in:
parent
cfae0d020a
commit
29d9e4270d
@ -1270,10 +1270,10 @@ class SSH(object): # pylint: disable=too-few-public-methods
|
|||||||
@property
|
@property
|
||||||
def maxlen(self):
|
def maxlen(self):
|
||||||
# type: () -> int
|
# type: () -> int
|
||||||
maxlen = 0
|
|
||||||
def ml(items):
|
def ml(items):
|
||||||
# type: (Sequence[text_type]) -> int
|
# type: (Sequence[text_type]) -> int
|
||||||
return max(len(i) for i in items)
|
return max(len(i) for i in items)
|
||||||
|
maxlen = 0
|
||||||
if self.ssh1kex is not None:
|
if self.ssh1kex is not None:
|
||||||
maxlen = max(ml(self.ssh1kex.supported_ciphers),
|
maxlen = max(ml(self.ssh1kex.supported_ciphers),
|
||||||
ml(self.ssh1kex.supported_authentications),
|
ml(self.ssh1kex.supported_authentications),
|
||||||
@ -1785,7 +1785,6 @@ class KexGroup14(KexDH): # pragma: nocover
|
|||||||
super(KexGroup14, self).__init__('sha1', 2, p)
|
super(KexGroup14, self).__init__('sha1', 2, p)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def output_algorithms(title, alg_db, alg_type, algorithms, maxlen=0):
|
def output_algorithms(title, alg_db, alg_type, algorithms, maxlen=0):
|
||||||
# type: (str, Dict[str, Dict[str, List[List[Optional[str]]]]], str, List[text_type], int) -> None
|
# type: (str, Dict[str, Dict[str, List[List[Optional[str]]]]], str, List[text_type], int) -> None
|
||||||
with OutputBuffer() as obuf:
|
with OutputBuffer() as obuf:
|
||||||
|
Loading…
Reference in New Issue
Block a user