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

Function _fix_filename

Tools/c-analyzer/c_parser/info.py:151–158  ·  view source on GitHub ↗
(filename, relroot, *,
                  formatted=True,
                  **kwargs)

Source from the content-addressed store, hash-verified

149# low-level
150
151def _fix_filename(filename, relroot, *,
152 formatted=True,
153 **kwargs):
154 if formatted:
155 fix = fsutil.format_filename
156 else:
157 fix = fsutil.fix_filename
158 return fix(filename, relroot=relroot, **kwargs)
159
160
161class FileInfo(namedtuple('FileInfo', 'filename lno')):

Callers 2

fix_filenameMethod · 0.70
fix_filenameMethod · 0.70

Calls 1

fixFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…