Checking whether a string ends with one of a list of suffixes
Yes, there is! Generator comprehensions and the any function to the rescue.

def checkEnds(line, ends):
    return any(line.endswith(end) for end in ends)


Just like the original code, this only checks as many line.endswith(end) as necessary, returning True on the first True result.