10 lines
322 B
Python
10 lines
322 B
Python
"""Row equality for sew: same content (strip, compare)."""
|
|
|
|
|
|
def row_equal(a, b, num_cols=6):
|
|
if len(a) < num_cols or len(b) < num_cols:
|
|
return False
|
|
for i in range(num_cols):
|
|
if (a[i] if i < len(a) else "").strip() != (b[i] if i < len(b) else "").strip():
|
|
return False
|
|
return True
|