Skip to content

Commit de3d092

Browse files
committed
_recv_into() is not used anymore
1 parent 342b8c9 commit de3d092

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,16 +1040,6 @@ def _recv_len(self):
10401040
return n
10411041
sh += 7
10421042

1043-
def _recv_into(self, buf, size=0):
1044-
"""Backwards-compatible _recv_into implementation."""
1045-
if self._backwards_compatible_sock:
1046-
size = len(buf) if size == 0 else size
1047-
b = self._sock.recv(size)
1048-
read_size = len(b)
1049-
buf[:read_size] = b
1050-
return read_size
1051-
return self._sock.recv_into(buf, size)
1052-
10531043
def _sock_exact_recv(self, bufsize):
10541044
"""Reads _exact_ number of bytes from the connected socket. Will only return
10551045
string with the exact number of bytes requested.

0 commit comments

Comments
 (0)