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

Function _normalize_fix_write

Tools/c-analyzer/c_common/tables.py:69–81  ·  view source on GitHub ↗
(fix, empty='')

Source from the content-addressed store, hash-verified

67
68
69def _normalize_fix_write(fix, empty=''):
70 if fix is None:
71 fix = empty
72 if callable(fix):
73 def fix_row(row):
74 values = fix(row)
75 return _fix_write_default(values, empty)
76 elif isinstance(fix, str):
77 def fix_row(row):
78 return _fix_write_default(row, fix)
79 else:
80 raise NotImplementedError(fix)
81 return fix_row
82
83
84def read_table(infile, header, *,

Callers 1

write_tableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…