Skip to content

Commit f4a959c

Browse files
committed
Make black happy again, undoing a change it did before.
1 parent dc59e2c commit f4a959c

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

adafruit_wiznet5k/adafruit_wiznet5k.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -760,13 +760,17 @@ def socket_write(self, socket_num, buffer, timeout=0):
760760
while (
761761
self._read_socket(socket_num, REG_SNIR)[0] & SNIR_SEND_OK
762762
) != SNIR_SEND_OK:
763-
if self.socket_status(socket_num)[0] in (
764-
SNSR_SOCK_CLOSED,
765-
SNSR_SOCK_TIME_WAIT,
766-
SNSR_SOCK_FIN_WAIT,
767-
SNSR_SOCK_CLOSE_WAIT,
768-
SNSR_SOCK_CLOSING,
769-
) or (timeout and time.monotonic() - stamp > timeout):
763+
if (
764+
self.socket_status(socket_num)[0]
765+
in (
766+
SNSR_SOCK_CLOSED,
767+
SNSR_SOCK_TIME_WAIT,
768+
SNSR_SOCK_FIN_WAIT,
769+
SNSR_SOCK_CLOSE_WAIT,
770+
SNSR_SOCK_CLOSING,
771+
)
772+
or (timeout and time.monotonic() - stamp > timeout)
773+
):
770774
# self.socket_close(socket_num)
771775
return 0
772776
time.sleep(0.01)

0 commit comments

Comments
 (0)