chore: init
This commit is contained in:
commit
edb31d2d31
13 changed files with 531 additions and 0 deletions
10
row_eq.py
Normal file
10
row_eq.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
"""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
|
||||
Loading…
Add table
Add a link
Reference in a new issue