mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-22 02:21:40 +01:00
Ignore pylint's else-if-used in validly used places.
This commit is contained in:
parent
74d1b5c7b5
commit
3ebb59108b
@ -99,7 +99,7 @@ class AuditConf(object):
|
|||||||
ipv = 4 if name == 'ipv4' else 6
|
ipv = 4 if name == 'ipv4' else 6
|
||||||
if value:
|
if value:
|
||||||
value = tuple(list(self.ipvo) + [ipv])
|
value = tuple(list(self.ipvo) + [ipv])
|
||||||
else:
|
else: # pylint: disable=else-if-used
|
||||||
if len(self.ipvo) == 0:
|
if len(self.ipvo) == 0:
|
||||||
value = (6,) if ipv == 4 else (4,)
|
value = (6,) if ipv == 4 else (4,)
|
||||||
else:
|
else:
|
||||||
@ -1834,7 +1834,7 @@ def output_algorithm(alg_db, alg_type, alg_name, alg_max_len=0):
|
|||||||
f = out.good
|
f = out.good
|
||||||
f(prefix + alg_name + padding + ' -- ' + text)
|
f(prefix + alg_name + padding + ' -- ' + text)
|
||||||
first = False
|
first = False
|
||||||
else:
|
else: # pylint: disable=else-if-used
|
||||||
if out.verbose:
|
if out.verbose:
|
||||||
f(prefix + alg_name + padding + ' -- ' + text)
|
f(prefix + alg_name + padding + ' -- ' + text)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user