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

Method _hash_files

numpy/distutils/fcompiler/gnu.py:401–412  ·  view source on GitHub ↗
(self, filenames)

Source from the content-addressed store, hash-verified

399 return ""
400
401 def _hash_files(self, filenames):
402 h = hashlib.sha1()
403 for fn in filenames:
404 with open(fn, 'rb') as f:
405 while True:
406 block = f.read(131072)
407 if not block:
408 break
409 h.update(block)
410 text = base64.b32encode(h.digest())
411 text = text.decode('ascii')
412 return text.rstrip('=')
413
414 def _link_wrapper_lib(self, objects, output_dir, extra_dll_dir,
415 chained_dlls, is_archive):

Callers 1

_link_wrapper_libMethod · 0.95

Calls 5

openFunction · 0.85
updateMethod · 0.80
decodeMethod · 0.80
rstripMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected