Fixed pylint & flake8 warnings and errors.

This commit is contained in:
Joe Testa
2022-10-10 20:40:29 -04:00
parent 0b8ecf2fb5
commit b9520cbc25
3 changed files with 5 additions and 7 deletions

View File

@ -325,7 +325,7 @@ class SSH_Socket(ReadBuf, WriteBuf):
self.__header = []
self.__banner = None
def _close_socket(self, s: Optional[socket.socket]) -> None: # pylint: disable=no-self-use
def _close_socket(self, s: Optional[socket.socket]) -> None:
try:
if s is not None:
s.shutdown(socket.SHUT_RDWR)