Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions tabulate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,11 @@ def _is_separating_line_value(value):

def _is_separating_line(row):
row_type = type(row)
is_sl = (row_type == list or row_type == str) and (
return (row_type is list or row_type is str) and (
(len(row) >= 1 and _is_separating_line_value(row[0]))
or (len(row) >= 2 and _is_separating_line_value(row[1]))
)

return is_sl


def _pipe_segment_with_colons(align, colwidth):
"""Return a segment of a horizontal line with optional colons which
Expand Down