MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / parse_tables

Function parse_tables

tests/utils/table.py:128–143  ·  view source on GitHub ↗
(table_string: str)

Source from the content-addressed store, hash-verified

126
127
128def parse_tables(table_string: str):
129 lines = table_string.strip().split("\n")
130 tables = list()
131 while True:
132 p = parse_table(lines)
133 if type(p) is tuple:
134 table, lines = p
135 tables.append(table)
136 else:
137 if p is not None:
138 tables.append(p)
139 break
140 if len(tables) == 1:
141 return tables[0]
142 else:
143 return tables

Callers 3

commandMethod · 0.85

Calls 3

parse_tableFunction · 0.85
appendMethod · 0.80
splitMethod · 0.45

Tested by 3

commandMethod · 0.68