From 3ebb59108b7d05aa6e4bc9c862eececf961942d6 Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Sun, 26 Mar 2017 05:58:39 +0300 Subject: [PATCH] Ignore pylint's else-if-used in validly used places. --- ssh-audit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssh-audit.py b/ssh-audit.py index d04c567..72f3d84 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -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: