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

Function write_catalog

PC/layout/support/catalog.py:39–42  ·  view source on GitHub ↗
(target, files)

Source from the content-addressed store, hash-verified

37
38@public
39def write_catalog(target, files):
40 with target.open("w", encoding="utf-8") as cat:
41 cat.write(CATALOG_TEMPLATE.format(target=target))
42 cat.writelines("<HASH>{}={}\n".format(n, f) for n, f in files if can_sign(f))

Callers 1

copy_filesFunction · 0.85

Calls 5

can_signFunction · 0.85
openMethod · 0.45
writeMethod · 0.45
formatMethod · 0.45
writelinesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…