From 253fc22a15e63b00fe209dbf1fa2355e57aec538 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Tue, 4 Feb 2020 17:27:19 +0100 Subject: [PATCH] adapt chunk read to binary data (#39533) --- atreal_openads/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atreal_openads/utils.py b/atreal_openads/utils.py index ccd6828..59a10b3 100644 --- a/atreal_openads/utils.py +++ b/atreal_openads/utils.py @@ -110,7 +110,7 @@ def get_file_digest(content, chunk_size=100000): """Read 'chunk_size' amount of data from the content.""" return content.read(chunk_size) - for chunk in iter(read_chunk, ''): + for chunk in iter(read_chunk, b''): digest.update(chunk) return digest.hexdigest()