Skip to content

Commit d5bee79

Browse files
committed
pylint
1 parent 993f8dd commit d5bee79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adafruit_espatcontrol/adafruit_espatcontrol_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def __init__(self, family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None):
3131
if type != SOCK_STREAM:
3232
raise RuntimeError("Only SOCK_STREAM type supported")
3333
self._buffer = b''
34+
self.settimeout(0)
3435

3536
def connect(self, address, conntype=None):
3637
"""Connect the socket to the 'address' (which should be dotted quad IP). 'conntype'
@@ -39,7 +40,6 @@ def connect(self, address, conntype=None):
3940
if not _the_interface.socket_connect(conntype, host, port, keepalive=10, retries=3):
4041
raise RuntimeError("Failed to connect to host", host)
4142
self._buffer = b''
42-
self.settimeout(0)
4343

4444

4545
def send(self, data): # pylint: disable=no-self-use

adafruit_espatcontrol/adafruit_espatcontrol_wifimanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self, esp, secrets, status_pixel=None, attempts=2):
5151
self.debug = False
5252
self.secrets = secrets
5353
self.attempts = attempts
54-
requests.set_socket(socket,esp)
54+
requests.set_socket(socket, esp)
5555
self.statuspix = status_pixel
5656
self.pixel_status(0)
5757

0 commit comments

Comments
 (0)