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

Function _normalize_filename

Lib/tracemalloc.py:338–342  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

336
337
338def _normalize_filename(filename):
339 filename = os.path.normcase(filename)
340 if filename.endswith('.pyc'):
341 filename = filename[:-1]
342 return filename
343
344
345class BaseFilter:

Callers 2

__init__Method · 0.85
_match_frame_implMethod · 0.85

Calls 2

normcaseMethod · 0.80
endswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…