def file_equality(f1, f2):
    """
    Returns true if the files are the same, without taking into account
    line endings.
    """
    with open(f1, "r") as a:
        with open(f2, "r") as b:
            return all(
                lineA.strip('\n').strip('\r') == lineB.strip('\n').strip('\r')
                for lineA, lineB in zip(a.readlines(), b.readlines())
            )