def third_line_parser(data):
    'A test parser that returns the third line of input.'
    try:
        return data.splitlines()[2]
    except IndexError:
        raise ParseError('Input does not contain 3 lines')
A test parser that returns the third line of input.
def third_line_parser(data):
    
    try:
        return data.splitlines()[2]
    except IndexError:
        raise ParseError('Input does not contain 3 lines')