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