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

Method _render_data_row

Tools/c-analyzer/c_parser/info.py:484–497  ·  view source on GitHub ↗
(cls, fmt, data, extra, colnames)

Source from the content-addressed store, hash-verified

482
483 @classmethod
484 def _render_data_row(cls, fmt, data, extra, colnames):
485 if fmt != 'row':
486 raise NotImplementedError
487 datarow = cls._data_as_row(data, extra, colnames)
488 unresolved = [c for c, v in datarow.items() if v is None]
489 if unresolved:
490 raise NotImplementedError(unresolved)
491 for colname, value in datarow.items():
492 if type(value) != str:
493 if colname == 'kind':
494 datarow[colname] = value.value
495 else:
496 datarow[colname] = str(value)
497 return datarow
498
499 @classmethod
500 def _render_data(cls, fmt, data, extra):

Callers 2

data_as_rowMethod · 0.95
_render_dataMethod · 0.80

Calls 3

strFunction · 0.85
_data_as_rowMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected