def file_md5(path, blocksize=2**23):
  '''Compute MD5 of file, in hex format.'''
  md5 = hashlib.md5()
  size = os.path.getsize(path)
  if 2**23 > size:
    log.debug("computing MD5 of file '%s' (size %s)", path, size)
  with open(path, "rb") as f:
    while True:
      data = f.read(blocksize)
      if not data:
        break
      md5.update(data)
  value = binascii.hexlify(md5.digest())
  return value
dataset/ETHPy150Open bloomreach/zinc/zinc.py/file_md5/swapped operands of `>`