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
This commit is contained in:
Jürgen Gmach 2020-10-02 01:48:07 +02:00 committed by GitHub
parent ca4ebc56f9
commit cd58a6180f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1306,9 +1306,7 @@ class SSH2: # pylint: disable=too-few-public-methods
if err is not None: if err is not None:
return return
unused = None # pylint: disable=unused-variable _, _, err = s.get_banner()
unused2 = None # pylint: disable=unused-variable
unused, unused2, err = s.get_banner()
if err is not None: if err is not None:
s.close() s.close()
return return