Skip to content

_recv_into() is not used anymore #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions adafruit_minimqtt/adafruit_minimqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,16 +1040,6 @@ def _recv_len(self):
return n
sh += 7

def _recv_into(self, buf, size=0):
"""Backwards-compatible _recv_into implementation."""
if self._backwards_compatible_sock:
size = len(buf) if size == 0 else size
b = self._sock.recv(size)
read_size = len(b)
buf[:read_size] = b
return read_size
return self._sock.recv_into(buf, size)

def _sock_exact_recv(self, bufsize):
"""Reads _exact_ number of bytes from the connected socket. Will only return
string with the exact number of bytes requested.
Expand Down