mirror of
https://github.com/meshtastic/python.git
synced 2026-04-30 11:55:17 -04:00
pylint cleanups
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user