MCPcopy Create free account
hub / github.com/numpy/numpy / save_hashes

Function save_hashes

tools/cythonize.py:120–123  ·  view source on GitHub ↗
(hash_db, filename)

Source from the content-addressed store, hash-verified

118 return hashes
119
120def save_hashes(hash_db, filename):
121 with open(filename, 'w') as f:
122 for key, value in sorted(hash_db.items()):
123 f.write("%s %s %s\n" % (key, value[0], value[1]))
124
125def sha256_of_file(filename):
126 h = hashlib.sha256()

Callers 1

find_process_filesFunction · 0.85

Calls 2

openFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected