(self, limit=-1)
return io.BufferedIOBase.readline(self, limit)
Read and return a line from the stream.

        If limit is specified, at most limit bytes will be read.
Read and return a line from the stream.
Read and return a line from the stream .
def readline(self, limit=-1):
        """Read and return a line from the stream.

        If limit is specified, at most limit bytes will be read.
        """

        if limit < 0:
            # Shortcut common case - newline found in buffer.
            i = self._readbuffer.find(b'\n', self._offset) + 1
            if i > 0:
                line = self._readbuffer[self._offset: i]
                self._offset = i
                return line

        return io.BufferedIOBase.readline(self, limit)
def readline ( self , limit = - 1 ) : if limit < 0 : # Shortcut common case - newline found in buffer. i = self . _readbuffer . find ( b'\n' , self . _offset ) + 1 if i > 0 : line = self . _readbuffer [ self . _offset : i ] self . _offset = i return line return io . BufferedIOBase . readline ( self , limit )