diff --git a/tabulate/__init__.py b/tabulate/__init__.py index 249b3ff..5e766bf 100644 --- a/tabulate/__init__.py +++ b/tabulate/__init__.py @@ -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