Skip to content

Commit 7caff5c

Browse files
committed
cache looking for ids in files
1 parent 0ef2bd8 commit 7caff5c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Doc/tools/check-html-ids.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def handle_starttag(self, tag, attrs):
4545
self.__ids.add(value)
4646

4747

48+
@functools.cache
4849
def get_ids_from_file(path):
4950
ids = set()
5051
gatherer = IDGatherer(ids)

0 commit comments

Comments
 (0)