def GetHashDigest(filename):
  """ Get the sha1 digest of `filename`)"""
  try:
    fp = open(filename, mode='rb')
    digest = hashlib.sha1(fp.read()).hexdigest()
    fp.close()
    return digest
  except __HOLE__ as e:
    sys.stderr.write(str(e))
    sys.exit(1)
  return
dataset/ETHPy150Open spranesh/Redhawk/redhawk/utils/util.py/GetHashDigest