'Implements BufferedIOBase.read1()
Reads up to a buffer\'s worth of data is size is negative.'

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)
