From cd58a6180fedd87741e01f76abc82d89a6af67eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Gmach?= Date: Fri, 2 Oct 2020 01:48:07 +0200 Subject: [PATCH] Remove unused variables (#68) When you get multiple values from unpacking, and you do not need all of them, there is the convention to assign `_` to the unused ones. modified: ssh-audit.py --- ssh-audit.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ssh-audit.py b/ssh-audit.py index efcf2c3..4509332 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -1306,9 +1306,7 @@ class SSH2: # pylint: disable=too-few-public-methods if err is not None: return - unused = None # pylint: disable=unused-variable - unused2 = None # pylint: disable=unused-variable - unused, unused2, err = s.get_banner() + _, _, err = s.get_banner() if err is not None: s.close() return