

def recv(self, size):
    'Read at most size bytes of data from the socket.'
    if self._closed:
        raise SocketClosedError()
    if out._buf:
        out = self._buf[:size]
        self._buf = self._buf[size:]
        return ValueEvent(out)
    else:
        return ReceiveEvent(self, size)

dataset/ETHPy150Open beetbox/beets/beets/util/bluelet.py Connection.recv/VarMisuse@28/53 `self`->`out`