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

Function load_hashes

tools/cythonize.py:108–118  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

106# Hash db
107#
108def load_hashes(filename):
109 # Return { filename : (sha256 of input, sha256 of output) }
110 if os.path.isfile(filename):
111 hashes = {}
112 with open(filename) as f:
113 for line in f:
114 filename, inhash, outhash = line.split()
115 hashes[filename] = (inhash, outhash)
116 else:
117 hashes = {}
118 return hashes
119
120def save_hashes(hash_db, filename):
121 with open(filename, 'w') as f:

Callers 1

find_process_filesFunction · 0.85

Calls 2

openFunction · 0.85
splitMethod · 0.45

Tested by

no test coverage detected