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

Class IDGatherer

Doc/tools/check-html-ids.py:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class IDGatherer(html.parser.HTMLParser):
23 def __init__(self, ids):
24 super().__init__()
25 self.__ids = ids
26
27 def handle_starttag(self, tag, attrs):
28 for name, value in attrs:
29 if name == 'id':
30 if not IGNORED_ID_RE.fullmatch(value):
31 self.__ids.add(value)
32
33
34def get_ids_from_file(path):

Callers 1

get_ids_from_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…