(self, size=-1)
return self._buffer.read1(size)
Implements BufferedIOBase.read1()

        Reads up to a buffer's worth of data if size is negative.
Implements BufferedIOBase.read1()
Implements BufferedIOBase . read1 ()
def read1(self, size=-1):
        """Implements BufferedIOBase.read1()

        Reads up to a buffer's worth of data if size is negative."""
        self._check_not_closed()
        if self.mode != READ:
            import errno
            raise OSError(errno.EBADF, "read1() on write-only GzipFile object")

        if size < 0:
            size = io.DEFAULT_BUFFER_SIZE
        return self._buffer.read1(size)
def read1 ( self , size = - 1 ) : self . _check_not_closed ( ) if self . mode != READ : import errno raise OSError ( errno . EBADF , "read1() on write-only GzipFile object" ) if size < 0 : size = io . DEFAULT_BUFFER_SIZE return self . _buffer . read1 ( size )