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

Method fix_filename

Tools/c-analyzer/c_parser/info.py:178–182  ·  view source on GitHub ↗
(self, relroot=fsutil.USE_CWD, **kwargs)

Source from the content-addressed store, hash-verified

176 return self.filename
177
178 def fix_filename(self, relroot=fsutil.USE_CWD, **kwargs):
179 filename = _fix_filename(self.filename, relroot, **kwargs)
180 if filename == self.filename:
181 return self
182 return self._replace(filename=filename)
183
184
185class SourceLine(namedtuple('Line', 'file kind data conditions')):

Callers

nothing calls this directly

Calls 2

_fix_filenameFunction · 0.70
_replaceMethod · 0.45

Tested by

no test coverage detected