MCPcopy Index your code
hub / github.com/python/cpython / resolve_columns

Function resolve_columns

Tools/c-analyzer/c_common/tables.py:226–233  ·  view source on GitHub ↗
(specs)

Source from the content-addressed store, hash-verified

224
225
226def resolve_columns(specs):
227 if isinstance(specs, str):
228 specs = specs.replace(',', ' ').strip().split()
229 resolved = []
230 for raw in specs:
231 column = ColumnSpec.from_raw(raw)
232 resolved.append(column)
233 return resolved
234
235
236def build_table(specs, *, sep=' ', defaultwidth=None):

Callers 2

resolve_formatFunction · 0.90
build_tableFunction · 0.85

Calls 5

splitMethod · 0.45
stripMethod · 0.45
replaceMethod · 0.45
from_rawMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…