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

Method fix_filename

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

Source from the content-addressed store, hash-verified

244 return self._compare > other
245
246 def fix_filename(self, relroot=fsutil.USE_CWD, **kwargs):
247 filename = _fix_filename(self.filename, relroot, **kwargs)
248 if filename == self.filename:
249 return self
250 return self._replace(filename=filename)
251
252
253class ParsedItem(namedtuple('ParsedItem', 'file kind parent name data')):

Callers 5

iter_decls_tsvFunction · 0.45
write_decls_tsvFunction · 0.45
cmd_parseFunction · 0.45
fix_filenameMethod · 0.45
fix_filenameMethod · 0.45

Calls 2

_fix_filenameFunction · 0.70
_replaceMethod · 0.45

Tested by

no test coverage detected