X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/ac39503a5a9a16c1098e65ee16a866cf8eb19a8f..c84a8c9ad465608d565821914169f19f30b3b2c3:/src/archive/utils.py?ds=inline diff --git a/src/archive/utils.py b/src/archive/utils.py index f169847..476d506 100644 --- a/src/archive/utils.py +++ b/src/archive/utils.py @@ -31,7 +31,7 @@ class OverwriteStorage(FileSystemStorage): def sha1_file(f): sha = sha1() - for piece in iter(lambda: f.read(1024*1024), ''): + for piece in iter(lambda: f.read(1024*1024), b''): sha.update(piece) return sha.hexdigest()