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

Function get_ids_from_file

Doc/tools/check-html-ids.py:34–40  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

32
33
34def get_ids_from_file(path):
35 ids = set()
36 gatherer = IDGatherer(ids)
37 with path.open(encoding='utf-8') as file:
38 while chunk := file.read(4096):
39 gatherer.feed(chunk)
40 return ids
41
42
43def gather_ids(htmldir, *, verbose_print):

Callers

nothing calls this directly

Calls 5

setFunction · 0.85
IDGathererClass · 0.85
openMethod · 0.45
readMethod · 0.45
feedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…