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

Function _normalize_fix_read

Tools/c-analyzer/c_common/tables.py:52–66  ·  view source on GitHub ↗
(fix)

Source from the content-addressed store, hash-verified

50
51
52def _normalize_fix_read(fix):
53 if fix is None:
54 fix = ''
55 if callable(fix):
56 def fix_row(row):
57 values = fix(row)
58 return _fix_read_default(values)
59 elif isinstance(fix, str):
60 def fix_row(row):
61 values = _fix_read_default(row)
62 return (None if v == fix else v
63 for v in values)
64 else:
65 raise NotImplementedError(fix)
66 return fix_row
67
68
69def _normalize_fix_write(fix, empty=''):

Callers 1

read_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…