diff --git a/bob/devtools/dav.py b/bob/devtools/dav.py index e01cfd2c8254f50d8b321a4dc53cdabac69eadf5..3e3d83bc3df8838fc04d8f6f52269c23897a69fe 100644 --- a/bob/devtools/dav.py +++ b/bob/devtools/dav.py @@ -57,7 +57,7 @@ def _get_config(): def compute_sha256(path): sha256_hash = hashlib.sha256() with open(path, "rb") as f: - for byte_block in iter(lambda: f.read(4096), b""): + for byte_block in iter(lambda: f.read(65535), b""): sha256_hash.update(byte_block) file_hash = sha256_hash.hexdigest() return file_hash