pylint cleanups

This commit is contained in:
William Stearns
2024-10-10 23:49:20 -04:00
parent 58d9039a04
commit 0da405168f
5 changed files with 10 additions and 8 deletions

View File

@@ -49,7 +49,7 @@ class TCPInterface(StreamInterface):
"""Shutdown the socket.
Note: Broke out this line so the exception could be unit tested.
"""
if socket:
if self.socket: #mian: please check that this should be "if self.socket:"
cast(socket.socket, self.socket).shutdown(socket.SHUT_RDWR)
def myConnect(self) -> None:
@@ -82,4 +82,4 @@ class TCPInterface(StreamInterface):
if self.socket:
return self.socket.recv(length)
else:
return None
return None