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

Function _looks_like_filename

Tools/c-analyzer/c_parser/source.py:35–38  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

33
34
35def _looks_like_filename(value):
36 if not isinstance(value, str):
37 return False
38 return value.endswith(('.c', '.h'))
39
40
41def _resolve_filename(filename, alt=None):

Callers 2

resolveFunction · 0.85
good_fileFunction · 0.85

Calls 1

endswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…