Skip to content

Commit

Permalink
Tidy __check_superrow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdewar committed Oct 31, 2024
1 parent 0e29ad5 commit f9889d7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,11 @@ def __check_superrow(self, row):
"""
cleaned_row = set(
[i for i in row if (str(i) != "") & (str(i) != "\n") & (str(i) != "None")]
i for i in row if (str(i) != "") & (str(i) != "\n") & (str(i) != "None")
)
if len(cleaned_row) == 1 and bool(
return len(cleaned_row) == 1 and bool(
re.match("[a-zA-Z]", next(iter(cleaned_row)))
):
return True
else:
return False
)

def __find_format(self, header):
"""
Expand Down

0 comments on commit f9889d7

Please sign in to comment.