def get_line_data(line):
    """get the data from a line"""
    if line.old_lineno == -1:
        status = "i"
    elif line.new_lineno == -1:
        status = "d"
    else:
        status = None
    return {"status": status, "content": line.content}