def read(self, n=-1):
        if n is None:
            n = -1
        if n < 0:
            return self.readall()
        b = bytearray(n.__index__())
        n = self.readinto(b)
        if n is None:
            return None
        del b[n:]
        return bytes(b)
Read and return up to n bytes.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/_pyio.py/RawIOBase.read