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

Function get_hash

tools/cythonize.py:141–144  ·  view source on GitHub ↗
(frompath, topath)

Source from the content-addressed store, hash-verified

139 return path
140
141def get_hash(frompath, topath):
142 from_hash = sha256_of_file(frompath)
143 to_hash = sha256_of_file(topath) if os.path.exists(topath) else None
144 return (from_hash, to_hash)
145
146def process(path, fromfile, tofile, processor_function, hash_db):
147 fullfrompath = os.path.join(path, fromfile)

Callers 1

processFunction · 0.85

Calls 2

sha256_of_fileFunction · 0.85
existsMethod · 0.45

Tested by

no test coverage detected