(self, size)
return b''.join(chunks)
Read 'size' bytes from remote.
Read 'size' bytes from remote.
Read size bytes from remote .
def read(self, size):
        """Read 'size' bytes from remote."""
        chunks = []
        read = 0
        while read < size:
            data = self.file.read(min(size-read, 4096))
            if not data:
                break
            read += len(data)
            chunks.append(data)
        return b''.join(chunks)
def read ( self , size ) : chunks = [ ] read = 0 while read < size : data = self . file . read ( min ( size - read , 4096 ) ) if not data : break read += len ( data ) chunks . append ( data ) return b'' . join ( chunks )