mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-22 22:15:22 +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
|
||||
if value:
|
||||
value = tuple(list(self.ipvo) + [ipv])
|
||||
else:
|
||||
else: # pylint: disable=else-if-used
|
||||
if len(self.ipvo) == 0:
|
||||
value = (6,) if ipv == 4 else (4,)
|
||||
else:
|
||||
@ -1834,7 +1834,7 @@ def output_algorithm(alg_db, alg_type, alg_name, alg_max_len=0):
|
||||
f = out.good
|
||||
f(prefix + alg_name + padding + ' -- ' + text)
|
||||
first = False
|
||||
else:
|
||||
else: # pylint: disable=else-if-used
|
||||
if out.verbose:
|
||||
f(prefix + alg_name + padding + ' -- ' + text)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user