tests/runtests.py
def consume_line(self):
        '''
        Returns a complete buffered line, if one exists, and removes it from
        the buffer. If a complete line does not exist, this returns None, and
        no modifications are made to the buffer.
        '''
        buffered_lines = self._buffer.splitlines()
        if len(buffered_lines) <= 1:
            return None

        first_line = buffered_lines[0]
        remaining_buffer = '\n'.join(buffered_lines[1:])

        self._buffer = remaining_buffer
        return first_line

        Returns a complete buffered line, if one exists, and removes it from
        the buffer. If a complete line does not exist, this returns None, and
        no modifications are made to the buffer.
        
Returns a complete buffered line, if one exists, and removes it from
the buffer. If a complete line does not exist, this returns None, and
no modifications are made to the buffer.
Returns a complete buffered line if one exists and removes it from the buffer . If a complete line does not exist this returns None and no modifications are made to the buffer .
def consume_line(self):
        buffered_lines = self._buffer.splitlines()
        if len(buffered_lines) <= 1:
            return None
        first_line = buffered_lines[0]
        remaining_buffer = '\n'.join(buffered_lines[1:])
        self._buffer = remaining_buffer
        return first_line
def consume_line ( self ) : buffered_lines = self . _buffer . splitlines ( ) if len ( buffered_lines ) <= 1 : return None first_line = buffered_lines [ 0 ] remaining_buffer = '\n' . join ( buffered_lines [ 1 : ] ) self . _buffer = remaining_buffer return first_line
Returns a complete buffered line, if one exists, and removes it from
the buffer.
Returns a complete buffered line if one exists and removes it from the buffer .
'''
        Returns a complete buffered line, if one exists, and removes it from
        the buffer. If a complete line does not exist, this returns None, and
        no modifications are made to the buffer.
        '''
self