def code_almost_equal(a, b):
    """Return True if code is similar.

    Ignore whitespace when comparing specific line.

    """
    split_a = split_and_strip_non_empty_lines(a)
    split_b = split_and_strip_non_empty_lines(b)

    if len(split_a) != len(split_b):
        return False

    for (index, _) in enumerate(split_a):
        if ''.join(split_a[index].split()) != ''.join(split_b[index].split()):
            return False

    return True
def code_almost_equal ( a , b ) : split_a = split_and_strip_non_empty_lines ( a ) split_b = split_and_strip_non_empty_lines ( b ) if len ( split_a ) != len ( split_b ) : return False for ( index , _ ) in enumerate ( split_a ) : if '' . join ( split_a [ index ] . split ( ) ) != '' . join ( split_b [ index ] . split ( ) ) : return False return True
Return True if code is similar.

    Ignore whitespace when comparing specific line.