MCPcopy Index your code
hub / github.com/astanin/python-tabulate / _remove_separating_lines

Function _remove_separating_lines

tabulate/__init__.py:1411–1422  ·  view source on GitHub ↗
(rows)

Source from the content-addressed store, hash-verified

1409
1410
1411def _remove_separating_lines(rows):
1412 if isinstance(rows, list):
1413 separating_lines = []
1414 sans_rows = []
1415 for index, row in enumerate(rows):
1416 if _is_separating_line(row):
1417 separating_lines.append(index)
1418 else:
1419 sans_rows.append(row)
1420 return sans_rows, separating_lines
1421 else:
1422 return rows, None
1423
1424
1425def _reinsert_separating_lines(rows, separating_lines):

Callers 2

_prepend_row_indexFunction · 0.85
tabulateFunction · 0.85

Calls 1

_is_separating_lineFunction · 0.85

Tested by

no test coverage detected