Skip to content

Commit 988332f

Browse files
authored
Merge pull request #155 from vladak/recv_into_cleanup
_recv_into() is not used anymore
2 parents bfcaea6 + de3d092 commit 988332f

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
@@ -1046,16 +1046,6 @@ def _recv_len(self):
10461046
return n
10471047
sh += 7
10481048

1049-
def _recv_into(self, buf, size=0):
1050-
"""Backwards-compatible _recv_into implementation."""
1051-
if self._backwards_compatible_sock:
1052-
size = len(buf) if size == 0 else size
1053-
b = self._sock.recv(size)
1054-
read_size = len(b)
1055-
buf[:read_size] = b
1056-
return read_size
1057-
return self._sock.recv_into(buf, size)
1058-
10591049
def _sock_exact_recv(self, bufsize):
10601050
"""Reads _exact_ number of bytes from the connected socket. Will only return
10611051
string with the exact number of bytes requested.

0 commit comments

Comments
 (0)