Skip to content

Commit

Permalink
Format per black specification
Browse files Browse the repository at this point in the history
  • Loading branch information
tom24 committed Jul 1, 2022
1 parent c3cceaf commit 2eed809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adafruit_wiznet5k/adafruit_wiznet5k.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __init__(
# Set MAC address
self.mac_address = mac
self.src_port = 0
self._dns = (0,0,0,0)
self._dns = (0, 0, 0, 0)
# udp related
self.udp_datasize = [0] * self.max_sockets
self.udp_from_ip = [b"\x00\x00\x00\x00"] * self.max_sockets
Expand Down
2 changes: 1 addition & 1 deletion adafruit_wiznet5k/adafruit_wiznet5k_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def recv(self, bufsize=0, flags=0): # pylint: disable=too-many-branches
)[1]
elif self._sock_type == SOCK_DGRAM:
recv = _the_interface.read_udp(self.socknum, min(to_read, avail))[1]
to_read = len(recv) # only get this dgram
to_read = len(recv) # only get this dgram
recv = bytes(recv)
received.append(recv)
to_read -= len(recv)
Expand Down

0 comments on commit 2eed809

Please sign in to comment.